X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fapi.git;a=blobdiff_plain;f=list%2Flist.h;fp=list%2Flist.h;h=c500c1a58b64cc834c13856fd80a09a9547d7f22;hp=0000000000000000000000000000000000000000;hb=040060604e2dc08d17d900825072aad88206ae3b;hpb=24edc387e6e88c32c6142f397ee891746eed62e3 diff --git a/list/list.h b/list/list.h new file mode 100644 index 0000000..c500c1a --- /dev/null +++ b/list/list.h @@ -0,0 +1,17 @@ +/* list.h -- list headers */ + +#include + + +#define SINGLE 'S' +#define DOUBLE 'D' + +typedef struct s_list_element { + struct s_list_element *next; + void *data; + int number; +} t_list_element; + +typedef struct s_list { + t_list_element start; +} t_list;