1 #if !defined( CSTACK_H )
4 typedef struct _cstack_t {
9 void (*push)(struct _cstack_t *self, char c);
10 char (*pop)(struct _cstack_t *self);
11 char (*top)(struct _cstack_t *self);
12 int (*empty)(struct _cstack_t *self);
13 void (*delete)(struct _cstack_t *self);
16 cstack_t *cstack_init();
17 void cstack_push(cstack_t *self, char c);
18 char cstack_pop(cstack_t *self);
19 char cstack_top(cstack_t *self);
20 int cstack_empty(cstack_t *self);
21 void cstack_delete(cstack_t *self);
23 #endif // !defined( CSTACK_H )