diff options
Diffstat (limited to '')
| -rw-r--r-- | util.c | 9 |
1 files changed, 9 insertions, 0 deletions
| @@ -40,6 +40,15 @@ eprint(const char *errstr, ...) | |||
| 40 | exit(EXIT_FAILURE); | 40 | exit(EXIT_FAILURE); |
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | void * | ||
| 44 | erealloc(void *ptr, unsigned int size) | ||
| 45 | { | ||
| 46 | void *res = realloc(ptr, size); | ||
| 47 | if(!res) | ||
| 48 | bad_malloc(size); | ||
| 49 | return res; | ||
| 50 | } | ||
| 51 | |||
| 43 | void | 52 | void |
| 44 | spawn(Arg *arg) | 53 | spawn(Arg *arg) |
| 45 | { | 54 | { |
