Files
- list.h: definition of Element and List
- dolist.h: list creation (i) iteratively and (ii) recursively
- util.c: print, count, concatenate, insert, delete
- main.c: activation of the above
- makefile
- list: the executable
typedef char Data; /* will use char in examples */
struct linked_list {
Data d;
struct linked_list * next;
};
typedef struct linked_list Element;
typedef Element * List;
/* Funution prototype */
extern List str2list_it(char *);
extern List str2list_rec(char *);
extern void print_list(List);
extern int count_rec(List);
extern int count_it(List);
extern void concatenate(List, List);
extern void delete_list(List);