Category : Files from Magazines
Archive   : CUJ9204.ZIP
Filename : 1004090B

 
Output of file : 1004090B contained in archive : CUJ9204.ZIP

void push(stack *, int);
int pop(stack *);

main()
{
int size = 50;

stack3.pstack = malloc(size * sizeof(int));
if (stack3.pstack == NULL) {
printf("Can't allocate space for stack3\n");
exit(1);
}

stack3.max_stack = size;

push(&stack1, 10);
push(&stack1, 12);
push(&stack2, 15);
push(&stack3, 20);
printf("stk1: %d\n", pop(&stack1));
printf("stk2: %d\n", pop(&stack2));
printf("stk3: %d\n", pop(&stack3));
printf("stk3: %d\n", pop(&stack3));

return 0;
}



  3 Responses to “Category : Files from Magazines
Archive   : CUJ9204.ZIP
Filename : 1004090B

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/