Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages

ptrstack.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include "ptrstack.h"

Go to the source code of this file.


Compounds

struct ptrstack

Functions

PtrStackHandle ptrstack_create (int size)
void ptrstack_destroy (PtrStackHandle voidhandle)
int ptrstack_compact (PtrStackHandle voidhandle)
int ptrstack_push (PtrStackHandle voidhandle, void *p)
int ptrstack_pop (PtrStackHandle voidhandle, void **p)
int ptrstack_popall (PtrStackHandle voidhandle)
int ptrstack_empty (PtrStackHandle voidhandle)

Function Documentation

int ptrstack_compact ( PtrStackHandle voidhandle )

Definition at line 64 of file ptrstack.c.

References NULL, PtrStackHandle, ptrstack::s, ptrstack::size, and ptrstack::top.

PtrStackHandle ptrstack_create ( int size )

Definition at line 34 of file ptrstack.c.

References ptrstack::growthrate, NULL, PtrStackHandle, ptrstack::s, ptrstack::size, size, and ptrstack::top.

void ptrstack_destroy ( PtrStackHandle voidhandle )

Definition at line 56 of file ptrstack.c.

References NULL, PtrStackHandle, and ptrstack::s.

int ptrstack_empty ( PtrStackHandle voidhandle )

Definition at line 118 of file ptrstack.c.

References PtrStackHandle, and ptrstack::top.

int ptrstack_pop ( PtrStackHandle voidhandle,
void ** p
)

Definition at line 100 of file ptrstack.c.

References PtrStackHandle, ptrstack::s, and ptrstack::top.

int ptrstack_popall ( PtrStackHandle voidhandle )

Definition at line 111 of file ptrstack.c.

References PtrStackHandle, and ptrstack::top.

int ptrstack_push ( PtrStackHandle voidhandle,
void * p
)

Definition at line 79 of file ptrstack.c.

References ptrstack::growthrate, NULL, PtrStackHandle, ptrstack::s, ptrstack::size, and ptrstack::top.


Generated on Mon Nov 17 02:47:45 2025 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002

AltStyle によって変換されたページ (->オリジナル) /