Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
a local clone.
core.stdc.stdarg
D header file for C99.
This module contains bindings to selected types and
functions from the standard C header <stdarg.h>. Note that this
is not automatically generated, and may omit some types/functions from the
original C header.
License:
Authors:
Walter Bright, Hauke Duden
Standards:
ISO/IEC 9899:1999 (E)
Source core/stdc/stdarg.d
- alias
va_list
= char*; - The argument pointer type.
- void
va_start
(T)(out va_listap
, ref Tparmn
); - Initialize ap. For 32 bit code, parmn should be the last named parameter. For 64 bit code, parmn should be _va_argsave.
- T
va_arg
(T)(ref va_listap
); - Retrieve and return the next value that is type T. Should use the other va_arg instead, as this won't work for 64 bit code.
- void
va_arg
(T)(ref va_listap
, ref Tparmn
); - Retrieve and return the next value that is type T. This is the preferred version.
- void
va_arg
()(ref va_listap
, TypeInfoti
, void*parmn
); - Retrieve and store through parmn the next value that is of TypeInfo ti. Used when the static type is not known.
- nothrow @system void
va_end
(va_listap
); - End use of ap.
- nothrow @system void
va_copy
(out va_listdest
, va_listsrc
);
Copyright © 1999-2019 by the D Language Foundation | Page generated by
Ddoc on Thu Oct 3 09:21:12 2019