1
0
mirror of git://git.suckless.org/sbase synced 2024-12-28 01:52:23 +00:00
sbase/unlink.c
2014-11-19 20:09:29 +00:00

24 lines
321 B
C

/* See LICENSE file for copyright and license details. */
#include <stdlib.h>
#include <unistd.h>
#include "util.h"
static void
usage(void)
{
eprintf("usage: unlink file\n");
}
int
main(int argc, char *argv[])
{
if (argc != 2)
usage();
if (unlink(argv[1]) < 0)
eprintf("unlink: '%s':", argv[1]);
return 0;
}