Functions

slist.c File Reference

#include <assert.h>
#include "slist.h"
#include <stddef.h>
Include dependency graph for slist.c:

Functions

SListslist_delete (SList *head, void(*delete_fct)(void *item))
void * slist_remove (SList **phead, SListCallback *find, void *matchdata)
void * slist_find (SList *slist, SListCallback *find, void *matchdata)
SListslist_concat (SList *head, SList *tail)
SListslist_cons (SList *item, SList *slist)
SListslist_tail (SList *slist)
SListslist_nth (SList *slist, size_t n)
size_t slist_length (SList *slist)
SListslist_reverse (SList *slist)
void * slist_foreach (SList *slist, SListCallback *foreach, void *userdata)
SListslist_sort (SList *slist, SListCompare *compare, void *userdata)
SListslist_box (const void *userdata)
void * slist_unbox (SList *item)

Function Documentation

SList* slist_box ( const void *  userdata  ) 
SList* slist_concat ( SList head,
SList tail 
)

References slist::next.

SList* slist_cons ( SList item,
SList slist 
)

References slist::next.

SList* slist_delete ( SList head,
void(*)(void *item)  delete_fct 
)

References slist::next.

void* slist_find ( SList slist,
SListCallback find,
void *  matchdata 
)

References slist::next.

void* slist_foreach ( SList slist,
SListCallback foreach,
void *  userdata 
)

References slist::next.

size_t slist_length ( SList slist  ) 

References slist::next.

SList* slist_nth ( SList slist,
size_t  n 
)
void* slist_remove ( SList **  phead,
SListCallback find,
void *  matchdata 
)

References slist::next.

SList* slist_reverse ( SList slist  ) 

References slist::next.

SList* slist_sort ( SList slist,
SListCompare compare,
void *  userdata 
)

References slist::next, and slist_sort.

SList* slist_tail ( SList slist  ) 

References slist::next.

void* slist_unbox ( SList item  ) 

References free(), and slist::userdata.