list.h (356B)
1 #pragma lib "../list/liblist.a$O" 2 enum { 3 CTrsh = 0, 4 CNull = ')', 5 CList = '(', 6 CData = 'd', 7 }; 8 9 typedef struct Node Node; 10 struct Node { 11 u8int type; 12 u32int count; 13 void *data; 14 }; 15 16 int readnode(int, Node *); 17 int readnodeheader(int, Node *); 18 int writenode(int, Node *); 19 int writenodeheader(int, Node *); 20 Node * readlist(int); 21 int writelist(int, Node *);