00001 /* rm.c 00002 //3502448 00003 00004 Removes files specified on command line. */ 00005 00006 #include <stdio.h> 00007 #include <syscall.h> 00008 00009 int 00010 main (int argc, char *argv[]) 00011 { 00012 bool success = true; 00013 int i; 00014 00015 for (i = 1; i < argc; i++) 00016 if (!remove (argv[i])) 00017 { 00018 printf ("%s: remove failed\n", argv[i]); 00019 success = false; 00020 } 00021 return success ? EXIT_SUCCESS : EXIT_FAILURE; 00022 }