Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!twwells!bill From: bill@twwells.com (T. William Wells) Newsgroups: comp.sources.wanted Subject: Re: wanted - float to ascii - "ftoa()" or the like. Keywords: preferably small and simple. Message-ID: <1989Dec27.063527.5866@twwells.com> Date: 27 Dec 89 06:35:27 GMT References: <21435@mimsy.umd.edu> Organization: None, Ft. Lauderdale, FL Lines: 20 In article <21435@mimsy.umd.edu> mjr@mimsy.umd.edu (Marcus J. Ranum) writes: : I'm looking for a small and simple "ftoa()" routine - doesn't : need lots of formatting options - just has to take a float and return : a pointer to a string. I'd rather not hack it out of the various : _doprint() implementations that are floating around, if someone has : already done it. void ftoa(buf, v) char *buf; double v; { sprintf(buf, "%g", v); } Small and simple enough? --- Bill { uunet | novavax | ankh | sunvice } !twwells!bill bill@twwells.com