/* demonstration of execve() */ #include #include int main() { char *x[3]; extern char **environ; x[0] = "cat"; x[1] = "a wacky file name illustrating that each of these is an argument without parsing"; x[2] = NULL; execve("/bin/cat", x, environ); perror("/bin/cat"); return(1); }