On Friday, December 13, 2013 01:17:41 Jonathan M Davis wrote: > or you could do something like > > auto cstr = str.dup.ptr;
Wait. That was stupid of me. Don't do this. It'll give you a char*, but it won't be null-terminated. If you need char*, then use toUTFz!(char*) - though from what Mike's saying, it sounds like the problem was really your function prototype, which was supposed to take const char* rather than char*. - Jonathan M Davis