list.h
void void list_delete (struct list *list) list_delete struct list * list
int int list_elems (struct list *list) list_elems struct list * list
void * void* list_first (struct list *list) list_first struct list * list
void void list_map (struct list *list, void(*func)(void *arg)) list_map struct list * list void(*)(void *arg) func
list * struct list* list_new (int size) list_new int size
void * void* list_pop (struct list *list) list_pop struct list * list
int int list_push (struct list *list, void *elem) list_push struct list * list void * elem
int int list_remove (struct list *list, void *elem) list_remove struct list * list void * elem

    /*
    *Copyright(c)2001,SwedishInstituteofComputerScience.
    *Allrightsreserved.
    *
    *Redistributionanduseinsourceandbinaryforms,withorwithout
    *modification,arepermittedprovidedthatthefollowingconditions
    *aremet:
    *1.Redistributionsofsourcecodemustretaintheabovecopyright
    *notice,thislistofconditionsandthefollowingdisclaimer.
    *2.Redistributionsinbinaryformmustreproducetheabovecopyright
    *notice,thislistofconditionsandthefollowingdisclaimerinthe
    *documentationand/orothermaterialsprovidedwiththedistribution.
    *3.NeitherthenameoftheInstitutenorthenamesofitscontributors
    *maybeusedtoendorseorpromoteproductsderivedfromthissoftware
    *withoutspecificpriorwrittenpermission.
    *
    *THISSOFTWAREISPROVIDEDBYTHEINSTITUTEANDCONTRIBUTORS``ASIS''AND
    *ANYEXPRESSORIMPLIEDWARRANTIES,INCLUDING,BUTNOTLIMITEDTO,THE
    *IMPLIEDWARRANTIESOFMERCHANTABILITYANDFITNESSFORAPARTICULARPURPOSE
    *AREDISCLAIMED.INNOEVENTSHALLTHEINSTITUTEORCONTRIBUTORSBELIABLE
    *FORANYDIRECT,INDIRECT,INCIDENTAL,SPECIAL,EXEMPLARY,ORCONSEQUENTIAL
    *DAMAGES(INCLUDING,BUTNOTLIMITEDTO,PROCUREMENTOFSUBSTITUTEGOODS
    *ORSERVICES;LOSSOFUSE,DATA,ORPROFITS;ORBUSINESSINTERRUPTION)
    *HOWEVERCAUSEDANDONANYTHEORYOFLIABILITY,WHETHERINCONTRACT,STRICT
    *LIABILITY,ORTORT(INCLUDINGNEGLIGENCEOROTHERWISE)ARISINGINANYWAY
    *OUTOFTHEUSEOFTHISSOFTWARE,EVENIFADVISEDOFTHEPOSSIBILITYOF
    *SUCHDAMAGE.
    *
    *ThisfileispartofthelwIPTCP/IPstack.
    *
    *Author:AdamDunkels<adam@sics.se>
    *
    *$Id: list_8h.xml 88 2016-01-12 00:11:29Z reddawg $
    */
    #ifndef__LWIP_LIST_H__
    #define__LWIP_LIST_H__

    structlist;

    structlist*list_new(intsize);
    intlist_push(structlist*list,void*elem);
    void*list_pop(structlist*list);
    intlist_remove(structlist*list,void*elem);
    void*list_first(structlist*list);
    intlist_elems(structlist*list);
    voidlist_delete(structlist*list);

    voidlist_map(structlist*list,void(*func)(void*arg));

    #endif/*__LWIP_LIST_H__*/