summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/gcvt.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* I am retiring my old email address; replace it with my OpenBSD one.millert2019-01-251-2/+2
|
* Pull in gdtoa.h instead of declaring __dtoa() and __freedtoa() directlyguenther2013-11-011-4/+2
| | | | ok deraadt@
* Make gcvt() better match printf("%g") behavior, it now passes regress.millert2010-09-251-11/+23
| | | | OK deraadt@
* teach gdtoa & its subroutines that malloc can fail; in which casemartynas2009-10-161-1/+3
| | | | | | ecvt, fcvt, gcvt, *printf, strtof, strtod, strtold act per ieee 1003.1. after these massive changes, remove unused files which would not work now. reported by Maksymilian Arciemowicz; ok theo
* make __dtoa & strtod() thread-safe useing the same method as newer gdtoaderaadt2006-10-291-1/+4
| | | | | codebase. tested mostly by ckuethe and myself. __dtoa() use now requires a call to __freedtoa()
* Return inf or nan as per printf() not Inf, Infinity or Nan (from dtoa)millert2006-01-101-4/+8
| | | | Remove an extraneous check for dtoa returning Inf/Nan
* Use localeconv() to get the locale-specific radix char like printf does.millert2006-01-101-3/+6
|
* Nan and Infinity can be negativemillert2006-01-101-6/+12
| | | | | | | Decimal point was missing for some exponential output Only divide sign by 10 once per loop Add a missing NUL terminator for one case If there is no whole number portion, print a leading zero (e.g. 0.1 not .1)
* zap remaining rcsid.espie2005-08-081-5/+1
| | | | | | Kill old files that are no longer compiled. okay theo
* Sync with share/misc/license.template and add missing DARPA creditmillert2003-06-171-10/+14
| | | | where applicable.
* Use an ISC-tyle license for all my code; it is simpler and more permissive.millert2003-06-031-23/+12
|
* Pass ndigit+1 as size arg to strlcpy() since ndigit doesn't include the NULmillert2003-05-091-3/+3
|
* use strlcpy(); assumes buf is at least ndigit bytes long which is asmillert2003-04-021-4/+7
| | | | safe as we can get. deraadt@ OK
* Add ecvt(), fcvt() and gcvt() for standard compliance and legacy code.millert2002-12-021-0/+103