Mercurial > ~dholland > hg > tradcpp > index.cgi
annotate utils.h @ 3:bfa97d43197e
support code
author | David A. Holland |
---|---|
date | Sun, 19 Dec 2010 16:51:57 -0500 |
parents | |
children | 0601b6e8e53d |
rev | line source |
---|---|
3 | 1 #define HOWMANY(arr) (sizeof(arr)/sizeof((arr)[0])) |
2 | |
3 void *domalloc(size_t len); | |
4 void *dorealloc(void *ptr, size_t len); | |
5 | |
6 char *dostrdup(const char *s); | |
7 char *dostrdup2(const char *s, const char *t); | |
8 char *dostrdup3(const char *s, const char *t, const char *u); | |
9 | |
10 void freestringlater(char *s); | |
11 void die(void); |