2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-15 07:41:45 +00:00

Including the final (char *)NULL is the responsibility of the caller

of execl().
This commit is contained in:
Michael Brown 2006-12-08 09:15:12 +00:00
parent a77b32aaf6
commit c343a3a8ee

View File

@ -16,7 +16,7 @@ extern int execv ( const char *command, char * const argv[] );
* This is a front end to execv().
*/
#define execl( command, arg, ... ) ( { \
char * const argv[] = { (arg), ## __VA_ARGS__, NULL }; \
char * const argv[] = { (arg), ## __VA_ARGS__ }; \
int rc = execv ( (command), argv ); \
rc; \
} )