home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
window
/
mewel12.lzh
/
LIST.H
< prev
next >
Wrap
C/C++ Source or Header
|
1989-02-03
|
748b
|
25 lines
/*
LINKED LIST ROUTINES
*/
#ifndef NULL
#define NULL (char *) 0
#endif
typedef struct list
{
struct list *next;
char *data;
} LIST;
extern struct list *pascal ListCreate(unsigned char *data);
extern void pascal ListAdd(struct list * *headptr,struct list *element);
extern void pascal ListInsert(struct list * *headptr,struct list *element,struct list *elBefore);
extern struct list *pascal ListFindData(struct list *head,unsigned char *data);
extern void pascal ListDelete(struct list * *head,struct list *element);
extern struct list *pascal ListGetNth(struct list *headptr,int n);
extern int pascal ListGetLength(struct list *headptr);
extern int pascal ListFree(struct list * *headptr,int bFreeData);