first a small piece of CODE
if ( (pid = fork()) == 0)
//in the child process
execve(desired proggy.....);//run the desired program in
//childs addresss space
now the explanation: fork returns twice , once in child (with value
'0') and once in the parent (with the pid of child process)..
when you are inide the child process, you can do an exec and run the desired program in the child process....
now...well..sort o yes, it has to do somethin with the return valuse...but those of fork,,bcoz, if fork returns '0' it means child is ready to run , otherwise the parent continues on its path....