#include <stdio.h>
int main()
{
int i;
printf(
"Initial stack (list backend) size: %d\n",
sld_stack_size(&stack1));
printf(
"Initial stack (vector backend) size: %d\n",
sld_stack_size(&stack2));
printf(
"Stack (list backend) size after pushing objects: %d\n",
sld_stack_size(&stack1));
printf(
"Stack (vector backend) size after pushing objects: %d\n",
sld_stack_size(&stack2));
printf(
"Popped from stack (list backend): %s\n", (
char *)
sld_stack_pop(&stack1));
printf(
"Stack (list backend) size after pop: %d\n",
sld_stack_size(&stack1));
printf(
"Popped from stack (vector backend): %s\n", (
char *)
sld_stack_pop(&stack2));
printf(
"Stack (vector backend) size after pop: %d\n",
sld_stack_size(&stack2));
printf(
"Peeking at contents of stack (list backend) top: %s\n", (
char *)
sld_stack_peek(&stack1));
puts("Popping remaining contents of stack (list backend)...");
puts("");
puts("Popping remaining contents of stack (vector backend)...");
puts("");
return 0;
}