www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - where is atoi()?

reply dogtired <dogtired_member pathlink.com> writes:
I can't find it, neither can dmd.
Sep 20 2004
parent reply h3r3tic <h3r3tic dev.null> writes:
dogtired wrote:
 I can't find it, neither can dmd.
Don't. How about std.conv ? :)
Sep 20 2004
parent reply Sjoerd van Leent <svanleent wanadoo.nl> writes:
h3r3tic wrote:
 dogtired wrote:
 
 I can't find it, neither can dmd.
Don't. How about std.conv ? :)
std.string, there it is
Sep 21 2004
parent reply h3r3tic <h3r3tic dev.null> writes:
Sjoerd van Leent wrote:
 h3r3tic wrote:
 
 dogtired wrote:

 I can't find it, neither can dmd.
Don't. How about std.conv ? :)
std.string, there it is
std.conv is better :>
Sep 21 2004
parent Sjoerd van Leent <svanleent wanadoo.nl> writes:
h3r3tic wrote:
 Sjoerd van Leent wrote:
 
 h3r3tic wrote:

 dogtired wrote:

 I can't find it, neither can dmd.
Don't. How about std.conv ? :)
std.string, there it is
std.conv is better :>
It is a string function, but I still think the name is odd. It is a C name out of the prehistory. I think that /int toInt(char[])/ and /char[] toString(int)/ would be more appropriate. I think it should be in the std.string module since it has to do with strings. Although you can argue that it also has to do with other variables. :p
Sep 21 2004