Category : C Source Code
Archive   : UNIXSHL.ZIP
Filename : RMDIR.C

 
Output of file : RMDIR.C contained in archive : UNIXSHL.ZIP

#include
rd(argc,argv)
char *argv[];
{
static char *usage = "usage : rmdir directory";
if (argc == 1)
write(2,usage,strlen(usage));
if (-1 == rmdir(*(++argv)))
{
perror("rmdir");
return -1;
}
return 0;
}