In writing an exercise. Feel strange, because the translator said that the lack of sentinel?? What do you mean ...
=====================================
Copy Code code as follows:
/*
Practice the following to create a process
*/
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
int main (void)
{
printf ("Running PS with execlp\n");
EXECLP ("PS", "PS", "-ax", 0); /*<----The row in which the error occurred, change the method. Convert 0 to (char *) 0.
printf ("done.\n");
Exit (0);
}
================================
PEXEC.C: In function ' main ':
Pexec.c:8: Warning: Missing Sentry in function call
-----------------------------------------------------------
Obviously, Chinese is not clear.
Switch to English look: input export Lang=posix
And then look again.
---------------------
pexec.c:in function ' main ':
Pexec.c:8: Warning:missing Sentinel in function call
---------------------------------------
Baidu to CU found someone ask the same question:
the conclusion is:
Memory area at the time of memory the value of both ends is not determined so it prompts for sentry duty on both sides. Plainly, it's initialization!