integer to string function (itoa())

Brad Appleton brad at SSD.CSD.HARRIS.COM
Sat Jun 30 02:15:46 AEST 1990


In article <22888 at boulder.Colorado.EDU> baileyc at tramp.Colorado.EDU (BAILEY CHRISTOPHER R) writes:

>Help, I need an itoa() function for use with my Sun compiler.

Perhaps I missed something but ...  Is there some reason why:

  int i = 10; char a[3];
  sprintf( a, "%d", i );

is unnacceptable for your purposes?

______________________ "And miles to go before I sleep." ______________________
 Brad Appleton         brad at hcx1.ssd.csd.harris.com    Harris Computer Systems
                           ...!uunet!hcx1!brad         Fort Lauderdale, FL USA
~~~~~~~~~~~~~~~~~~~~ Disclaimer: I said it, not my company! ~~~~~~~~~~~~~~~~~~~



More information about the Comp.lang.c mailing list