ZE-Standard-Libraries/stack/stack.c

13 lines
588 B
C
Raw Normal View History

2018-06-12 05:51:42 +00:00
<EFBFBD><EFBFBD>#include "./stack_expand.h"
int stack(void) {
Stack *t_stack = initStack();
for (int i = 0; i < 10; i++) {
pushStack(t_stack, snodeWithInt(i));
}
for (int i = 0; i < 10; i++) {
printf("%d", getValueByIntForSNode(popStack(t_stack)));
}
releaseStack(t_stack);
return 0;
}