Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!osiris.cso.uiuc.edu!gordon From: gordon@osiris.cso.uiuc.edu (John Gordon) Newsgroups: comp.lang.c Subject: Re: Source for "integer to ascii" and multiple file search-n-replace Message-ID: <1990Nov20.014110.16982@ux1.cso.uiuc.edu> Date: 20 Nov 90 01:41:10 GMT References: <318@cti1.UUCP> Sender: news@ux1.cso.uiuc.edu (News) Distribution: comp Organization: University of Illinois at Urbana Lines: 12 mpledger@cti1.UUCP (Mark Pledger) writes: >I'm looking for a function that can convert an integer to an ascii string. >Microsoft has a function in its library called itoa() where you can specify >the radix result used in the ascii string. I just want to convert integers >though. I am looking for a fast implementation, without resorting to scanf() >or print() type functions. Assuming: int integer; char buffer[100]; sprintf(buffer, "%d", integer); will do the job nicely.