/* 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");
}
/* 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");
}
MCA Students
Batch :2009-12
Holy Jesus and Mary PG College of Computer Science, Secunderabad
8143261431
|
|