list.h

 #ifndef __LIST_H__
#define __LIST_H__

#include <stdio.h>
#include <stdlib.h>
#include "item.h"

#define FAILURE 0
#define SUCCESS 1

typedef struct Manger_s List;

/* All Of The Function Prototypes */
List * createList(void);
int ListIsEmpty(List * ptrList);
int insertToHeadList(List *ptrList, Item *item);
int insertToTailList(List *ptrList, Item *item);
Item removeFirst(List *ptrList);
Item GetFirstItem(List *ptrList);
Item removeLast(List *ptrList);
Item GetLastItem(List *ptrList);
Item getItemByKey(List *ptrList,Item *item);
void shutDown(List *pList);
Item delRecByKey(List *ptrList,Item *ptritem);
int RemoveRecByKey(List *ptrList,Item *ptritem);
void destroyList(List *ptrList);
void printList(List *ptrList);


#endif /*__LIST_H__*/

Project Homepage: