aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnselm R. Garbe2006-10-12 12:59:37 +0200
committerAnselm R. Garbe2006-10-12 12:59:37 +0200
commit95b19f75cce1ba994790ccf7ccdf1815d5d52d75 (patch)
tree74444eb5596f2b37692ab5f031b6ecc4bf598f2a
parent3d25a327aad95e38ecd1642af58a49fc555a9d01 (diff)
changing order
-rw-r--r--util.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/util.c b/util.c
index b7798d2..0427ed5 100644
--- a/util.c
+++ b/util.c
@@ -18,15 +18,6 @@ emalloc(unsigned int 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 @@ eprint(const char *errstr, ...) {
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;
+}