Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!lll-winken!tristan!loren From: loren@tristan.llnl.gov (Loren Petrich) Newsgroups: comp.lang.c Subject: Re: integer to string function (itoa()) Message-ID: <64736@lll-winken.LLNL.GOV> Date: 14 Jul 90 01:11:35 GMT References: <22888@boulder.Colorado.EDU> Sender: usenet@lll-winken.LLNL.GOV Reply-To: loren@tristan.UUCP (Loren Petrich) Distribution: usa Organization: Lawrence Livermore National Laboratory Lines: 23 In article <22888@boulder.Colorado.EDU> baileyc@tramp.Colorado.EDU (BAILEY CHRISTOPHER R) writes: > >Help, I need an itoa() function for use with my Sun compiler. It seems >as if only PC versions of C have itoa functions. So, source code for >an integer to string function would be very helpful. Thanks! Use the "sprintf" function -- it is like "printf" or "fprintf", but it takes the output string as an argument. Check your system's manual pages for more details. ^ Loren Petrich, the Master Blaster \ ^ / loren@sunlight.llnl.gov \ ^ / One may need to route through any of: \^/ <<<<<<<<+>>>>>>>> lll-lcc.llnl.gov /v\ lll-crg.llnl.gov / v \ star.stanford.edu / v \ v For example, use: loren%sunlight.llnl.gov@star.stanford.edu My sister is a Communist for Reagan