#include <stdio.h>
int main()
{
int i;
printf(
"Initial queue (list backend) size: %d\n",
sld_queue_size(&queue1));
printf(
"Initial queue (vector backend) size: %d\n",
sld_queue_size(&queue2));
printf(
"Queue (list backend) size after adding objects: %d\n",
sld_queue_size(&queue1));
printf(
"Queue (vector backend) size after adding objects: %d\n",
sld_queue_size(&queue2));
printf(
"Removed from queue (list backend): %s\n", (
char *)
sld_queue_remove(&queue1));
printf(
"queue (list backend) size after remove: %d\n",
sld_queue_size(&queue1));
printf(
"Removed from queue (vector backend): %s\n", (
char *)
sld_queue_remove(&queue2));
printf(
"queue (vector backend) size after remove: %d\n",
sld_queue_size(&queue2));
printf(
"Peeking at contents of queue (list backend) end: %s\n", (
char *)
sld_queue_peek(&queue1));
puts("Removing remaining contents of queue (list backend)...");
puts("");
puts("Removing remaining contents of queue (vector backend)...");
puts("");
return 0;
}