first flow of .h, one main() compilng

This commit is contained in:
tonton Th
2020-03-28 09:57:02 +01:00
parent 33f0954c7b
commit 850cf9d8bd
14 changed files with 873 additions and 5 deletions

27
lists.h Normal file
View File

@@ -0,0 +1,27 @@
/*
* lists
* architecture clients/serveur guinness
* Thomas Nemeth -- le 15 juin 2001
*
*/
#ifndef GUINNESS_LISTS
#define GUINNESS_LISTS
typedef struct elt_t_ {
char *nom;
struct elt_t_ *next;
} Elt;
void add_elt (Elt **elt, const char *nom);
void remove_elt (Elt **elt, const char *nom);
void remove_elt_n (Elt **elt, int i);
int get_nb_elts (Elt *elt);
char *elt_number (Elt *elt, int i);
int exist_elt (Elt *elt, const char *nom);
char *get_elt (Elt *elt, const char *nom);
void free_list (Elt **elt);
#endif