Prog#242: mv command


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