A use case for fromStringz

Jesse Phillips jessekphillips+D at gmail.com
Thu Mar 31 14:14:51 PDT 2011


Why not:

 string getNameOld()
 {
     static char[256] name;
     cDispatch(name.ptr, kGetProductName);
     return to!string(name.ptr);
 }


More information about the Digitalmars-d-learn mailing list