This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
converting int to string
- From: Colin Law <c dot law at elec dot gla dot ac dot uk>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 25 Nov 2002 10:56:09 +0000
- Subject: converting int to string
Hi,
Sorry, if this is a rather easy one, but can someone tell me how to
convert an int, or any other value ,into a string?
I am trying to concatenate values onto the end of strings for some debug
info, coming from java, i would do something like, "message" + intValue.
The message should then get logged. Is there something similar, or an
integer.stringValue() type method available? or do i have to stick with
something like sprintf(...
Thanks,
~Colin.