D Programming Language 1.0

Last update Mon Dec 31 10:53:29 2012

# std.c.stdarg

C's <stdarg.h> This is for use with extern(C) variable argument lists.
Authors:
Hauke Duden and Walter Bright, Digital Mars, http://www.digitalmars.com
License:
Public Domain
Source:
std/c/stdarg.d

alias va_list;
  The argument pointer type.
void va_start(T)(out va_list ap, ref T parmn);
  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_list ap);
  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_list ap, ref T parmn);
  Retrieve and return the next value that is type T. This is the preferred version.
void va_arg()(ref va_list ap, TypeInfo ti, void* parmn);
  Retrieve and store through parmn the next value that is of TypeInfo ti. Used when the static type is not known.
void va_end(va_list ap);
  End use of ap.

Copyright © 1999-2012 by Digital Mars, All Rights Reserved | Page generated by Ddoc.