Prog#240: (unlink) rm command


#1
/*
(unlink) rm command
Program#240
*/
#include<stdio.h>
main(int argc,char *argv[])
{
int i;
if(argc!=2)
{
printf("error: no.of arg");
return 0;
}
i=unlink(argv[1]);
if(i==0)
printf("link is removed");
else
printf("link not removed");
}