diff options
Diffstat (limited to 'enstrndup.c')
-rw-r--r-- | enstrndup.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/enstrndup.c b/enstrndup.c index 7dd6595..8803a99 100644 --- a/enstrndup.c +++ b/enstrndup.c @@ -3,17 +3,12 @@ #ifndef TEST -extern char *argv0; - - char * libsimple_enstrndup(int status, const char *s, size_t n) /* TODO test */ { void *ret = strndup(s, n); - if (!ret) { - fprintf(stderr, "%s: strndup: %s\n", argv0, strerror(errno)); - exit(status); - } + if (!ret) + enprintf(status, "strndup:"); return ret; } |