char* to long

Mars - at -.-
Tue Jan 24 12:48:03 PST 2012


Hello everybody.
I have to convert a char* (from a C function) to long. At the 
moment I'm using
>long foo = to!long( to!string(bar) );
but this doesn't feel right... with 2 to calls. Is this the way 
to go? Or is there something better?

Mars


More information about the Digitalmars-d-learn mailing list