#include "stack.h" int main(void) { Stack s; int p; InitStack(&s); for (int i = 0; i < 3; i++) Push(&s, i); for (int i = 0; i < 3; i++) { printf("Get top: %d\n",GetTop(&s)); Pop(&s,&p); printf("Pop: %d\n",p); } DestroyStack(&s); return 0; }