home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.c:16802 comp.lang.c++:16574
- Path: sparky!uunet!stanford.edu!agate!dog.ee.lbl.gov!horse.ee.lbl.gov!torek
- From: torek@horse.ee.lbl.gov (Chris Torek)
- Newsgroups: comp.lang.c,comp.lang.c++
- Subject: Re: Converting an int or a float into a string*???
- Date: 19 Nov 1992 18:35:13 GMT
- Organization: Lawrence Berkeley Laboratory, Berkeley
- Lines: 12
- Message-ID: <27541@dog.ee.lbl.gov>
- References: <1992Nov13.135058.5330@magnus.acs.ohio-state.edu> <mT1cuB12w165w@rhps.chi.il.us>
- Reply-To: torek@horse.ee.lbl.gov (Chris Torek)
- NNTP-Posting-Host: 128.3.112.15
-
- In article <mT1cuB12w165w@rhps.chi.il.us> warlok@rhps.chi.il.us
- (Jon L Fincher) writes:
- >You could try to standard C function fcvt() ...
-
- This, like previous advice to call gcvt(), is suspect at best. I
- cannot speak for C++, but fcvt() is not an ANSI C function, and is not
- present in all implementations. In particular, we removed it from the
- 4.4BSD C library. Fcvt() merely implemented sprintf()'s `%f' format
- anyway, so if you want that behavior, use sprintf().
- --
- In-Real-Life: Chris Torek, Lawrence Berkeley Lab CSE/EE (+1 510 486 5427)
- Berkeley, CA Domain: torek@ee.lbl.gov
-