home *** CD-ROM | disk | FTP | other *** search
- /******************************************************************************
- * Module : List --- List building and maintenance module.
- *
- * Author : John Stevens.
- ******************************************************************************/
-
- #if ! defined(LIST_HEADER_FILE)
- #define LIST_HEADER_FILE
-
- /* Define a list header structure. */
- typedef struct {
- int NoElems;
- int TotElems;
- int ElemSz;
- char List[1];
- } LIST;
-
- /* Function prototypes. */
- extern void *AddList(LIST *, void *, int);
- extern void *CrtList(int);
- extern int SrchList(LIST *Head,
- void *Elem,
- int (*CmpFn)(void *, void *),
- int *InsPt);
- extern void *ListIdx(LIST *, int);
- extern void *AppList(LIST *, void *);
-
- #endif
-