list.h

socketmud_workingbase/src/list.h · 603 B

From the archive thris_concept.zip

Download the archive   « Back to the archive contents

/* file: list.h
 *
 * Headerfile for a basic double-linked list
 */

#ifndef _LIST_HEADER
#define _LIST_HEADER

typedef struct BBGList       LIST;
typedef struct BBGIterator   ITERATOR;

LIST      *AllocList          ( void );
ITERATOR  *AllocIterator      ( LIST *pList);
void      *NextInList         ( ITERATOR *pIter );
void       AttachToList       ( void *pContent, LIST *pList );
void       DetachFromList     ( void *pContent, LIST *pList );
void       FreeIterator       ( ITERATOR *pIter );
void       FreeList           ( LIST *pList );
int        SizeOfList         ( LIST *pList );

#endif

Site Stats

Snippets: 1791
Codebases: 571