728x90
728x170
*[header][C library] cstdarg (stdarg.h)
<cstdarg> (stdarg.h)
Variable arguments handling
A function may accept a varying number of additional arguments without corresponding parameter declarations by including a comma and three dots (,...) after its regular named parameters:
return_type function_name ( parameter_declarations , ... );
To access these additional arguments the macros va_start, va_arg and va_end, declared in this header, can be used:
Types
- va_list
- Type to hold information about variable arguments (type )
Macro functions
- va_start
- Initialize a variable argument list (macro )
- va_arg
- Retrieve next argument (macro )
- va_end
- End using variable argument list (macro )
- va_copy
- Copy variable argument list (macro )
728x90
그리드형(광고전용)
'Programming > C++' 카테고리의 다른 글
[header][C library] cstdio (stdio.h) (0) | 2017.11.08 |
---|---|
[header][C library] cstdint (stdint.h) (C++11) (0) | 2017.11.08 |
[header][C library] cstddef (stddef.h) (0) | 2017.11.08 |
[header][C library] cstdbool (stdbool.h) (C++11) (0) | 2017.11.08 |
[header][C library] csignal (signal.h) (0) | 2017.11.08 |
[header][C library] csetjmp (setjmp.h) (0) | 2017.11.08 |
[header][C library] cmath (math.h) (0) | 2017.11.08 |
[header][C library] clocale (locale.h) (0) | 2017.11.08 |