8 #define SCREENHEIGHT 25
11 #define xalloc(T) _xalloc(sizeof(T))
14 #define xcalloc(S,T) _xalloc((S) * sizeof(T));
17 #define xfree(P) _xfree((void **)&(P))
20 #define lengthof(x) (sizeof(x) / sizeof(x[0]))
22 void mvaddprintf(
unsigned int y,
unsigned int x,
const char * fmt, ...);
23 char *
strdup(
const char * str);
24 void mvaddchcol(
unsigned int y,
unsigned int x,
33 const char * choices[],
34 const void * results[]);
void mvaddprintf(unsigned int y, unsigned int x, const char *fmt,...)
Definition: utils.c:14
void show_help()
Definition: utils.c:170
void _xfree(void **ptr)
Definition: utils.c:204
void mvaddchcol(unsigned int y, unsigned int x, char chr, int fg, int bg, bool bold)
Definition: utils.c:43
void * _xalloc(size_t size)
Definition: utils.c:192
const void * random_choice(const void *choices[])
Definition: utils.c:160
char * strdup(const char *str)
Definition: utils.c:27
const void ** list_choice(bool nochoice, const char *prompt, const char *prompt2, bool multi, bool empty, const char *choices[], const void *results[])
Definition: utils.c:73