1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-27 00:29:31 +00:00

For exec() the command line pointer may be NULL.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4919 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2011-01-25 20:19:09 +00:00
parent 5b79d7e685
commit 549b8ec895

View File

@ -2050,8 +2050,10 @@ evaluated or is ignored.
<tag/Description/<tt/exec/ replaces the currently running program by a new one.
Calling <tt/exec()/ is identical to calling <tt/<ref id="exit" name="exit()">/,
then loading and starting the program named in the first argument, passing
the command line specified as second argument. On success, the function does
not return. On failure, -1 is returned and <tt/errno/ contains an error code.
the command line specified as second argument. Instead of an empty string,
a <tt/NULL/ pointer may be passed as second parameter.
On success, the function does not return. On failure, -1 is returned and
<tt/errno/ contains an error code.
<tag/Limits/<itemize>
<item>The function is only available as fastcall function, so it may only
be used in presence of a prototype.