list.h (534B)
1// list.h 2 3#include <stdbool.h> 4 5#ifndef _LCC_LIST_H 6#define _LCC_LIST_H 7 8 9typedef struct list *List; 10struct list { /* circular list nodes: */ 11 char *str; /* option or file name */ 12 List link; /* next list element */ 13}; 14 15List append(char *, List); 16List find(char *, List); 17 18List path2list(const char *); 19 20void list_rewrite_exts(List, char *, char *); 21void list_duplicate_to_new_exts(List, char *, char *); 22List list_remove_all(List); 23List list_add_to_another(List, List, char *, char *); 24 25 26#endif // _LCC_LIST_H