1234567891011121314151617181920212223 |
- #ifndef _LIST_H_
- #define _LIST_H_
- #include <lib.h>
- typdef struct node
- {
- struct node * next;
- int val;
- } node;
- typedef struct list
- {
- node * front;
- int len;
- } list;
- list * newlist();
- void listsert(list * l, int x);
- void listemove(list * l, int x);
- void listelete(list * l);
- #endif /* _LIST_H_ */
|