all repos — dmenu @ 95b19f75cce1ba994790ccf7ccdf1815d5d52d75

my build of dmenu

changing order
Anselm R. Garbe arg@10kloc.org
Thu, 12 Oct 2006 12:59:37 +0200
commit

95b19f75cce1ba994790ccf7ccdf1815d5d52d75

parent

3d25a327aad95e38ecd1642af58a49fc555a9d01

1 files changed, 9 insertions(+), 9 deletions(-)

jump to
M util.cutil.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; +}