I searched on internet and saw a lot of code that uses itoa() function & they claimed that this function is in stdlib.h
I'm using 2 versions of GCC right now:
(GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu4))
(GCC) 4.1.2 20080704 (Red Hat 4.1.2-44)
and both of them does not have itoa() function (I compile the program & error: undefined reference to `itoa').
Any ideas? Thanks.
itoa()
isn't in standard C - snprintf()
is the function to use in its place (at least it's probably the simplest change to make).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With