toaruos/userspace/core/rm.c
2014-06-07 23:13:29 -07:00

25 lines
431 B
C

/* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2013 Kevin Lange
*/
/*
* 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;
}