How does one parse an integer to string(char* || char[])
in C? Is there an equivalent to the Integer.parseInt(String)
method from Java in C?
If you want to convert an integer to string, try the function snprintf()
.
If you want to convert a string to an integer, try the function sscanf()
or atoi()
or atol()
.
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