is there a simple way to reverse the effects of atoi()? I'm trying to build a debug system.. and i need to output the line number from the file which comes in integer format.
Printable View
is there a simple way to reverse the effects of atoi()? I'm trying to build a debug system.. and i need to output the line number from the file which comes in integer format.
Yep, itoa.
i can't find that one in my book
Should be in stdlib.h
2 years w/ c++ (more with C) and i've never needed to use this.. i thought i'd exhausted most of cstdlib
[edit]nevermind, it isn't ansi.. i just checked the compatibility[/edit]
If you want it to be ANSI and itoa isn't ANSI, then why not use sprintf? or write your own?! :D
U.