Skip to content
Snippets Groups Projects
Commit f0b10ff6 authored by h2-addad's avatar h2-addad
Browse files

Update

parent 01838266
No related branches found
No related tags found
No related merge requests found
/* rm.c
Removes files specified on command line. */
#include <stdio.h>
#include <syscall.h>
int
main (int argc, char *argv[])
{
bool success = true;
int i;
for (i = 1; i < argc; i++)
if (!remove (argv[i]))
{
printf ("%s: remove failed\n", argv[i]);
success = false;
}
return success ? EXIT_SUCCESS : EXIT_FAILURE;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment