Mercurial > projects > ldc
annotate test/mainargs1.d @ 300:7b1040c76dd2 trunk
[svn r321] Fix bug in argument remapping functions.
author | ChristianK |
---|---|
date | Tue, 24 Jun 2008 22:27:55 +0200 |
parents | d9d5d59873d8 |
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 } |