From: billlanam AT california DOT com (Bill Lanam) Newsgroups: comp.os.msdos.djgpp Subject: Re: ecvt() - where? Date: Sat, 07 Dec 1996 06:20:03 GMT Message-ID: <32a90360.7849935@seashell.california.com> References: <199612042105 DOT NAA24663 AT mailmasher DOT com> <32A64836 DOT 3149 AT cs DOT com> NNTP-Posting-Host: 140.174.210.86 Lines: 31 DJ-Gateway: from newsgroup comp.os.msdos.djgpp Apparently-To: djgpp AT delorie DOT com On Wed, 04 Dec 1996 19:57:42 -0800, "John M. Aldrich" wrote: >> According to the GCC info files there's supposed to be a function >> called ecvt() inside libc.a. It doesn't seem to be included in the >> DJGPP libc.a, however. >> >> Any ideas on how to remedy this? > >I just did a thorough search of the info files and the libraries, and >the only place the 'ecvt()' function is ever mentioned is in the >"Interoperation" node of gcc.inf. It doesn't appear in the libc >documentation or any of the libraries; I ran a check using "nm *.a | >grep "ecvt" and came up with zilch. > >I have never actually heard of this function; can anyone say what it is >for? ;) > ecvt converts a floating point number to a char. string. char *ecvt (double value, int count, int *dec, int *sign) value - Number to be converted. count - Number of digits stored. dec - Stored decimal point position. sign - Sign of converted number. returns a string of digits. easy to port to DJGPP using the sfprintf function. Bill Lanam