/*
 * Faculty of Applied Science and Engineering, University of Toronto
 * CSC181: Introduction to Computer Programming, Fall 2000
 *
 * Assignment: 3
 * File: main.c
 * Author: Ray Ortigas (rayo@dgp.toronto.edu)
 * Contains: Small program demonstrating functionality of List and
 *           String modules.
 */

#include <stdio.h>
#include "list.h"
#include "utility.h"

int main(void) {
	List *l = listInit();
	int i;
	listAppend(l, stringInit("hello"));
	listAppend(l, stringInit("goodbye"));
	listAppend(l, stringInit("aloha"));
	for (i = 0; i != listSize(l); i++) {
		printf("%s\n", stringToCString(listGet(l, i)));
	}
	return 0;
}
