]>
git.datanom.net - clib.git/blob - demo.c
7 Stack
* stack
= stack_init();
8 if (stack_empty(stack
))
9 printf("Stack is empty\n");
11 int* i
= malloc(sizeof(int*));
14 int* j
= malloc(sizeof(int*));
17 int* val
= stack_pop(stack
);
18 printf("Stack back: %i\n", *val
);
20 void** elems
= stack_clear(&stack
);
21 for (int i
= 0; elems
[i
]; i
++)
This page took 0.083398 seconds and 6 git commands to generate.