00001
00013
00014 #ifndef _EPSTACK_H_
00015 #define _EPSTACK_H_
00016
00017 #include "epList.h"
00018
00019 #define epStack_t epList_t
00020 #define _STACK_DIR _LIFO
00021
00022 epStack_t *epStack_create(int (*elementDeallocatorFunction)(void *elt));
00023 int epStack_destroy(epStack_t *stack);
00024 int epStack_push(epStack_t *stack, const void *elt);
00025 void *epStack_pop(epStack_t *stack);
00026 int epStack_size(epStack_t *stack);
00027 boolean_t epStack_isEmpty(epStack_t *stack);
00028 int epStack_setElementPrintFunction(epStack_t *stack,
00029 char *(*elementPrintFunction)(void *elt));
00030 int epStack_printIt(epStack_t *stack, char *title);
00031
00032
00033 #endif