diff options
author | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-10-29 14:55:03 -0500 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-10-29 14:57:22 -0500 |
commit | 2f7834b130dbd930b06ae4d8ef802bd115b011d1 (patch) | |
tree | c86de8af3cd52f3ba80823e6bc83e4bde3f65854 | |
parent | f494891a9aaf1f20e9900223ce2a068b6d237c27 (diff) |
sort util.c functions
-rw-r--r-- | util.c | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -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; +} |