diff options
Diffstat (limited to 'src/libposixplz/unlink_void.c')
-rw-r--r-- | src/libposixplz/unlink_void.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libposixplz/unlink_void.c b/src/libposixplz/unlink_void.c new file mode 100644 index 0000000..472bd6a --- /dev/null +++ b/src/libposixplz/unlink_void.c @@ -0,0 +1,12 @@ +/* ISC license. */ + +#include <unistd.h> +#include <errno.h> +#include <skalibs/posixplz.h> + +void unlink_void (char const *file) +{ + int e = errno ; + unlink(file) ; + errno = e ; +} |