22 lines
242 B
C
22 lines
242 B
C
|
#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]) == -1)
|
||
|
eprintf("unlink: '%s':", argv[1]);
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
|