/* * llist.h * * * Created by Josˇ Carlos Ramalho on 11/02/25. * Copyright 2011 __MyCompanyName__. All rights reserved. * */ #ifndef _LLIST #define _LLIST /* Data Types */ typedef struct sLList { void * elem; struct sLList *next; } *LList, LListNode; /* Functions */ /* List elements from head to tail */ void list_LList (LList l, int (*visit)(void*)); /* Head insertion .................*/ LList insert_LList(LList l, void *e, int size); /* Sorted insertion ...............*/ LList sortedinsert(LList l, void *e, int size, int (*comp)(void*, void*)); /* Deletion .......................*/ LList removeLList(LList l, void *e, int (*comp)(void*, void*)); #endif