cplusplus.com cplusplus.com
cplusplus.com   C++ : Reference : C Library : cstdarg (stdarg.h) : va_list
 
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forum
Reference
C Library
IOstream Library
Strings library
STL Containers
STL Algorithms
C Library
cassert (assert.h)
cctype (ctype.h)
cerrno (errno.h)
cfloat (float.h)
climits (limits.h)
clocale (locale.h)
cmath (math.h)
csetjmp (setjmp.h)
csignal (signal.h)
cstdarg (stdarg.h)
cstddef (stddef.h)
cstdio (stdio.h)
cstdlib (stdlib.h)
cstring (string.h)
ctime (time.h)
cstdarg (stdarg.h)
macros:
· va_arg
· va_end
· va_start
types::
· va_list

-

va_list type
<cstdarg>

Type to hold information about variable arguments

This type is used as a parameter for the macros defined in cstdarg to retrieve the additional arguments of a function.

Each compiler may implement this type in its own way. It is only intended to be used as the type for the object used as first argument for the va_start, va_arg and va_end macros.

va_start is in charge of initializing an object of this type, so that subsequent calls to va_arg with it retrieve the additional arguments passed to the function.

Before a function that has initialized a va_list object with va_start returns, the va_end shall be executed.

See also

va_start Initialize a variable argument list (macro)
va_arg Retrieve next argument (macro)
va_end End using variable argument list (macro)
© The C++ Resources Network, 2000-2007 - All rights reserved
Spotted an error? - contact us