Mercurial > projects > ldc
annotate tests/mini/mainargs1.d @ 1629:b07d683ba4d0
Disable appending a dchar to a char or wchar array for now.
See [1605] for details.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Wed, 06 Jan 2010 19:53:35 +0100 |
parents | 1bb99290e03a |
children |
rev | line source |
---|---|
91 | 1 module mainargs1; |
2 | |
133
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
91
diff
changeset
|
3 extern(C) int printf(char*,...); |
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
91
diff
changeset
|
4 |
270
d9d5d59873d8
[svn r291] Fixed a bunch of the old Phobos tests to work with Tango.
lindquist
parents:
133
diff
changeset
|
5 void main(char[][] args) |
91 | 6 { |
7 foreach(v; args) | |
8 { | |
9 printf("%.*s\n", v.length, v.ptr); | |
10 } | |
11 } |