The required arguments are declared as ordinary parameters to the function and can be accessed through the parameter names. These macros assume that the function takes a fixed number of required arguments, followed by a variable number of optional arguments. There are two versions of the macros: The macros defined in STDARG.H conform to the ISO C99 standard the macros defined in VARARGS.H are deprecated but are retained for backward compatibility with code that was written before the ANSI C89 standard. The va_arg, va_copy, va_end, and va_start macros provide a portable way to access the arguments to a function when the function takes a variable number of arguments. va_copy, va_start and va_end do not return values. Parameter that precedes the first optional argument. Pointer to the initialized list of arguments to copy to dest. ![]() ![]() Pointer to the list of arguments to be initialized from src ![]() ) // (deprecated Pre-ANSI C89 standardization version)
0 Comments
Leave a Reply. |