

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Class: Algorithms and Abstract Data Types; Subject: Computer Science; University: University of California-Santa Cruz; Term: Unknown 2000;
Typology: Assignments
1 / 3
This page cannot be seen from the preview
Don't miss anything!


/***** Constructors-Destructors *****/ ListHndl NewList(void); void FreeList(ListHndl* pL); /***** Access functions *************/ boolean isEmpty(ListHndl L); boolean atFirst(ListHndl L); boolean atLast(ListHndl L); boolean offEnd(ListHndl L); int getFirst(ListHndl L); int getLast(ListHndl L); int getCurrent(ListHndl L); int getLength(ListHndl L); boolean equals(ListHndl A, ListHndl B); /***** Manipulation procedures ******/ void moveFirst(ListHndl L); void moveLast(ListHndl L); void movePrev(ListHndl L); void moveNext(ListHndl L); void insertBeforeFirst(ListHndl L, int data); void insertAfterLast(ListHndl L, int data); void insertBeforeCurrent(ListHndl L, int data); void insertAfterCurrent(ListHndl L, int data); void deleteFirst(ListHndl L); void deleteLast(ListHndl L); void deleteCurrent(ListHndl L);
ListHndl copy(ListHndl L); void printList(ListHndl L);
ListHndl cat(ListHndl A, ListHndl B);
Shuffle : List.o Shuffle.o gcc -o Shuffle Shuffle.o List.o Shuffle.o : List.h Shuffle.c gcc -c -ansi -Wall Shuffle.c ListDriver: List.o ListDriver.o gcc -o ListDriver ListDriver.o List.o ListDriver.o : List.h ListDriver.c gcc -c -ansi -Wall ListDriver.c List.o : List.h List.c gcc -c -ansi -Wall List.c clean : rm Shuffle ListDriver Shuffle.o ListDriver.o List.o