aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-10-29 14:55:03 -0500
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-10-29 14:57:22 -0500
commit2f7834b130dbd930b06ae4d8ef802bd115b011d1 (patch)
treec86de8af3cd52f3ba80823e6bc83e4bde3f65854
parentf494891a9aaf1f20e9900223ce2a068b6d237c27 (diff)
sort util.c functions
-rw-r--r--util.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/util.c b/util.c
index 932f89b..cca7c19 100644
--- a/util.c
+++ b/util.c
@@ -6,16 +6,6 @@
#include "util.h"
-void *
-ecalloc(size_t nmemb, size_t size)
-{
- void *p;
-
- if (!(p = calloc(nmemb, size)))
- die("calloc:");
- return p;
-}
-
void
die(const char *fmt, ...) {
va_list ap;
@@ -33,3 +23,13 @@ die(const char *fmt, ...) {
exit(1);
}
+
+void *
+ecalloc(size_t nmemb, size_t size)
+{
+ void *p;
+
+ if (!(p = calloc(nmemb, size)))
+ die("calloc:");
+ return p;
+}