Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 150 -
5. Variable arguments
( stdarg.h )
------------------------------------------------------------------------------
5.1 Initialize arg_ptr
. <Main,Alarm,Comm>
------------------------------------------------------------------------------
[Name]
va_start
[Syntax]
#include <stdarg.h>
void va_start( va_list arg_ptr, prev_param ) ;
[Arguments]
arg_ptr Pointer to the list of arguments.
prev_param Previous argument to the first optional argument.
[Return]
------
[Description]
Initialize "arg_ptr" to let it point the first argument of the
arguments list. This function is defined as MACRO. There are two
definitions of this macro, such as ANSI standard macro defined in
stdarg.h and UNIX System V macro defined in varargs.h. Only the ANSI
standard macro is defined in C library.