Quantcast
Channel: Webminal - Latest topics
Viewing all articles
Browse latest Browse all 484

Prog#240: (unlink) rm command

$
0
0

@angala wrote:

/*
(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");
}

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 484

Trending Articles