I don't know what you'd like to do exactly, but it should be something like this:
Code:
pid_t child_pid;
child_pid=fork();
if(child_pid!=0) {
/* parent process */
} else {
execvp(program, arglist);
}
where
arglist is char** (list of chars, can be created using
Code:
char* arglist[]= { "arg1", "arg2","arg3",NULL};
(NULL is needed at the end).