toaruos/userspace/core/rm.c
2013-04-23 01:14:33 -07:00

21 lines
264 B
C

/*
* rm
*
* unlink a file
* (in theory)
*/
#include <stdio.h>
#include <string.h>
#include <unistd.h>
int main(int argc, char * argv[]) {
if (argc < 2) {
fprintf(stderr, "%s: argument expected\n", argv[0]);
return 1;
}
unlink(argv[1]);
return 0;
}