Analysis of "lack of sentry in function call" in C language _c language

Source: Internet
Author: User

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.