Mercurial > projects > ldc
view test/g.d @ 7:7a155ba88c53 trunk
[svn r11] added another struct sample
author | lindquist |
---|---|
date | Wed, 26 Sep 2007 19:17:54 +0200 |
parents | 3d60e549b0c2 |
children | d9d5d59873d8 |
line wrap: on
line source
module g; void func(char[] str) { printf("%.*s\n", str.length, str.ptr); } void main() { char[] arr = "Hello World!"; func(arr); func("ditto"); }