list - /* File: list.h * -* This interface provides the...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
/* File: list.h * ------------------------------------------------- * This interface provides the functions for the unordered * list ADT implementation. */ #include "gend.h" #ifndef _LIST_H #define _LIST_H #define MAX_LIST 1000 typedef gend ListItemType; typedef int bool; typedef struct _listCDT* List; /* * Function: CreateList * Usage: L = CreateList(); * ------------------------- * This function creates a new list instance. */ List CreateList(void); /* * Function: DestroyList * Usage: DestroyList(List L); * ------------------------- * This function frees memory allocated for a list instance. */ void DestroyList(List L); /* * Function: EmptyList * Usage: b = EmptyList(List L); * ------------------------- * This function returns 1 is L is empty and 0 if L contains * at least one item. */ bool EmptyList(List L); /* * Function: ListSize * Usage: s = ListSize(List L); * ------------------------- * This function returns the number of item that are * currently in the list. */ int ListSize(List L);
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

list - /* File: list.h * -* This interface provides the...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online