Mercurial > projects > ldc
view test/vararg5.d @ 143:336ec4f4bbb3 trunk
[svn r147] tango.io.Console is now working. True this time :) Yay!
author | lindquist |
---|---|
date | Fri, 25 Jan 2008 01:42:36 +0100 |
parents | 5825d48b27d1 |
children | d9d5d59873d8 |
line wrap: on
line source
module vararg5; import std.stdarg; void func(...) { char[] str = va_arg!(char[])(_argptr); {printf("%.*s\n", str.length, str.ptr);} } void main() { char[] str = "hello"; func(str); }