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.

lists.h 573B

123456789101112131415161718192021222324252627
  1. /*
  2. * lists
  3. * architecture clients/serveur guinness
  4. * Thomas Nemeth -- le 15 juin 2001
  5. *
  6. */
  7. #ifndef GUINNESS_LISTS
  8. #define GUINNESS_LISTS
  9. typedef struct elt_t_ {
  10. char *nom;
  11. struct elt_t_ *next;
  12. } Elt;
  13. void add_elt (Elt **elt, const char *nom);
  14. void remove_elt (Elt **elt, const char *nom);
  15. void remove_elt_n (Elt **elt, int i);
  16. int get_nb_elts (Elt *elt);
  17. char *elt_number (Elt *elt, int i);
  18. int exist_elt (Elt *elt, const char *nom);
  19. char *get_elt (Elt *elt, const char *nom);
  20. void free_list (Elt **elt);
  21. #endif