sbase/unlink.c
FRIGN eee98ed3a4 Fix coding style
It was about damn time. Consistency is very important in such a
big codebase.
2014-11-13 18:08:43 +00:00

23 lines
322 B
C

/* See LICENSE file for copyright and license details. */
#include <unistd.h>
#include <stdlib.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]) == -1)
eprintf("unlink: '%s':", argv[1]);
return 0;
}