view utils.h @ 3:bfa97d43197e

support code
author David A. Holland
date Sun, 19 Dec 2010 16:51:57 -0500
parents
children 0601b6e8e53d
line wrap: on
line source

#define HOWMANY(arr) (sizeof(arr)/sizeof((arr)[0]))

void *domalloc(size_t len);
void *dorealloc(void *ptr, size_t len);

char *dostrdup(const char *s);
char *dostrdup2(const char *s, const char *t);
char *dostrdup3(const char *s, const char *t, const char *u);

void freestringlater(char *s);
void die(void);