/* Execv */

20/10/2010 22:46

/* working with execv*/

#include<stdio.h>
int main()
{

char *temp[3];
temp[0]="ls";
temp[1]="-l";
temp[2]=(char *)0;
execv("/bin/ls",temp);
printf("iThis will not print");
}

Bookmark and Share

Done by Aarya