next up previous
Next: dump the obj file Up: Unix & Linux Previous: Get official Host name

exec

The execlp(or execl) system call has to be end with 0 to indicate the end of the argument list;For example

execlp(``ls'',''ls'');
will lead to strange error; The correct usage is
execlp(``ls'',''ls'',(char*)0);



Wei Lu 2007-11-06