1 // An overload of init() that works with D strings.
2 // Unlike the original, it does not need to modify the inputs.
3 // Returns a new string array (that can be assigned to the argv
4 // array in the caller).
6 string
[] init()(string argv
[]) {
7 int argc
= argv
.length
;
8 auto c_argv
= argvToC(argv
);
10 return argvFromC(argc
, c_argv
);