Red: > My problem is with the first argument. I am not sure what to > declare and how to pass it. I tried doing it as you would in C, > but it doesn't compile. Take a look at the toStringz function. But often using D functions is better than using C functions. Bye, bearophile