summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Seifert <nine@detonation.org>2016-11-09 14:49:07 +1100
committerTony Cook <tony@develop-help.com>2016-11-09 14:49:07 +1100
commit54c85bb058e15520a2fc0ba34007743aae56be34 (patch)
tree4af9085dbef53acdf9a8e8c31a95773916bb5fb6
parent272d03f882615257eeac4d2796d0b94e8c4ad868 (diff)
downloadperl-54c85bb058e15520a2fc0ba34007743aae56be34.tar.gz
clarify the contents of argv[]
-rw-r--r--pod/perlembed.pod3
1 files changed, 3 insertions, 0 deletions
diff --git a/pod/perlembed.pod b/pod/perlembed.pod
index 7bc7a8c36e..1c971c32b4 100644
--- a/pod/perlembed.pod
+++ b/pod/perlembed.pod
@@ -211,6 +211,9 @@ Also notice that no matter what arguments you pass to perl_parse(),
PERL_SYS_INIT3() must be invoked on the C main() argc, argv and env and
only once.
+Mind that argv[argc] must be NULL, same as those passed to a main
+function in C.
+
Now compile this program (I'll call it I<interp.c>) into an executable:
% cc -o interp interp.c `perl -MExtUtils::Embed -e ccopts -e ldopts`