changing order
Anselm R. Garbe arg@10kloc.org
Thu, 12 Oct 2006 12:59:37 +0200
1 files changed,
9 insertions(+),
9 deletions(-)
jump to
M
util.c
→
util.c
@@ -18,15 +18,6 @@ eprint("fatal: could not malloc() %u bytes\n", size);
return res; } -char * -estrdup(const char *str) { - void *res = strdup(str); - - if(!res) - eprint("fatal: could not malloc() %u bytes\n", strlen(str)); - return res; -} - void eprint(const char *errstr, ...) { va_list ap;@@ -36,3 +27,12 @@ vfprintf(stderr, errstr, ap);
va_end(ap); exit(EXIT_FAILURE); } + +char * +estrdup(const char *str) { + void *res = strdup(str); + + if(!res) + eprint("fatal: could not malloc() %u bytes\n", strlen(str)); + return res; +}