diff options
author | jozan <jozan@noemail.net> | 2020-11-05 21:17:14 +0000 |
---|---|---|
committer | jozan <jozan@noemail.net> | 2020-11-05 21:17:14 +0000 |
commit | 3eb14b975e277c0094be80a0e62c8de42bb80f31 (patch) | |
tree | 6fce717f638257af249fca5c373299d1edeaf13a /src/u_utils.c | |
parent | Correctly parsed file names (diff) | |
download | unixize-3eb14b975e277c0094be80a0e62c8de42bb80f31.tar.gz unixize-3eb14b975e277c0094be80a0e62c8de42bb80f31.tar.bz2 unixize-3eb14b975e277c0094be80a0e62c8de42bb80f31.tar.xz unixize-3eb14b975e277c0094be80a0e62c8de42bb80f31.tar.zst unixize-3eb14b975e277c0094be80a0e62c8de42bb80f31.zip |
Cleaner
FossilOrigin-Name: 03d9d3326460b4854e1c9bf6335c6fefcf4925bd1c0d13c2e1822c74fd6e8964
Diffstat (limited to 'src/u_utils.c')
-rw-r--r-- | src/u_utils.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/u_utils.c b/src/u_utils.c index cfaec25..13cb245 100644 --- a/src/u_utils.c +++ b/src/u_utils.c @@ -43,7 +43,11 @@ * 2020-11-05 19:27 */ +#include <errno.h> +#include <stdio.h> #include <stdlib.h> +#include <string.h> +#include <unistd.h> void u_memdel(void** ptr) @@ -51,3 +55,13 @@ u_memdel(void** ptr) free(*ptr); *ptr = NULL; } + +void +u_dump_errno(void) +{ + dprintf( + STDERR_FILENO, + "unixize: %s\n", + strerror(errno) + ); +} |