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.
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]
Last edited by cozman; 04-29-2002 at 03:01 PM.
If you want it to be ANSI and itoa isn't ANSI, then why not use sprintf? or write your own?!
U.
Quidquid latine dictum sit, altum sonatur.
Whatever is said in Latin sounds profound.