Integer to string

Hi all.

I'm starting with the C of arduino and I need a way to convert an integer value to a string or array of chars in order to display it on an LCD. Something like this:
printf ( s_myString, "%d", i_myInteger);

The problem is that I cannot find nothing like this in the reference. I was wondering if there are something written to manipulate number to string conversion before starting to write my own functions.

Tanks :wink:

there are a number of ways to do it , for a start have a google at itoa

You can use itoa(i_myInteger, s_myString, 10); // the 10 is the "base" of the int - leave at 10.
Edit: Sorry mem - simo-post.

Thanks both!

I thought that the available functions were limited to the ones on the extended reference page, but I see that there is more and I can try in the future all the standard C :wink:

Now my small little robot can "see" and shows the LDR values on the debugging LCD.

What would be the easiest way to do a float to string (also for printing to an lcd)?
It doesn't look like there's an ftoa.
thanks,
chris

Chris, there is code posted here that will print floating points with up to four decimal places : http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1207226548

beautiful!
Thank You