int main(void)
{
int e;
char *envp[] = {NULL};
char *argv[] = {"/bin/ls", "-1",NULL};
//char *argv[] = {"/bin/ls", "-1",NULL};
argv[1]= "0";;
//e = execve("/bin/ls", argv, envp);
return 0;
}
I have used this code but according to the declaration of execve it takes second parameter as const pointer to char but i have passed without const yet it is working fine. why????