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.
 
 

26 lines
452 B

/*
* xmem
* architecture clients/serveur guinness : gestion memoire
* Thomas Nemeth -- le 24 aout 2001
*
*/
#ifndef GUINNESS_XMEM
#define GUINNESS_XMEM
#include <string.h>
#include <strings.h>
void *xmalloc (size_t taille);
char *xstrdup (const char *chaine);
#define IS_NOT_GOOD(string) (! string || (strcmp (string, "") == 0))
#define SET_STRING(string, value) {\
if (string) free (string); \
string = xstrdup (value); }
#endif