1 /* unlink.c - delete one file
3 * Copyright 2011 Rob Landley <rob@landley.net>
5 * See http://opengroup.org/onlinepubs/9699919799/utilities/unlink.html
7 USE_UNLINK(NEWTOY(unlink, "<1>1", TOYFLAG_USR|TOYFLAG_BIN))
20 void unlink_main(void)
22 if (unlink(*toys.optargs))
23 perror_exit("Couldn't unlink `%s'", *toys.optargs);