Comment servir des pintes de Guinness "over Internet" ;)
Reprise/Fork d'un très ancien code d'un pilier de f.m.b.l : http://tnemeth.free.fr/projets/guinness-server.html
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
573 B
27 lines
573 B
/* |
|
* 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
|
|
|