Help passing D strings to C libs

Andrej Mitrovic andrej.mitrovich at gmail.com
Sun Mar 13 21:46:54 PDT 2011


Use toStringz from std.string, ala:
SDL_LoadBMP(toStringz(path));

Do not embed nulls before calling toStringz, so remove 'path ~= "\0";'


More information about the Digitalmars-d-learn mailing list