2013-06-09 09:20:55 -04:00
|
|
|
#include <unistd.h>
|
2013-10-07 11:41:55 -04:00
|
|
|
#include <stdlib.h>
|
2013-06-09 09:20:55 -04:00
|
|
|
#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]);
|
|
|
|
|
2013-10-07 11:41:55 -04:00
|
|
|
return EXIT_SUCCESS;
|
2013-06-09 09:20:55 -04:00
|
|
|
}
|
|
|
|
|