When I try use the function itoa()
, I get the warning:
implicit declaration of function is invalid in c99.
I have included stdlib.h on my header. I'm trying to call this function inside a function, I'm not sure if this is allowed.
The problem is that itoa() isn't a standard function.
You should take a look at this link which gives you some alternative implementations
An alternative that is commonly used in place of itoa
is sprintf
/snprintf
. These are part of stdio.h
.
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