mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
added readme.txt added test/g.d - tests passing strings to functions fixed test/dgs.d and test/funcptr, now all tests except those related to typeinfo should work.
14 lines
164 B
D
14 lines
164 B
D
module g;
|
|
|
|
void func(char[] str)
|
|
{
|
|
printf("%.*s\n", str.length, str.ptr);
|
|
}
|
|
|
|
void main()
|
|
{
|
|
char[] arr = "Hello World!";
|
|
func(arr);
|
|
func("ditto");
|
|
}
|