mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
18 lines
259 B
D
18 lines
259 B
D
module bug54;
|
|
|
|
extern(C) size_t strlen(char*);
|
|
|
|
// creating args for main
|
|
void d_main_args(size_t n, char** args, ref char[][] res)
|
|
{
|
|
assert(res.length == n);
|
|
foreach(i,v; args[0..n])
|
|
{
|
|
res[i] = v[0 .. strlen(v)];
|
|
}
|
|
}
|
|
|
|
void main()
|
|
{
|
|
}
|