summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/strtoll.c
Commit message (Collapse)AuthorAgeFilesLines
* Renumber clauses to reduce diffs to other versionsemaste2013-06-131-1/+1
| | | | | NetBSD, OpenBSD, and Android's Bionic number the clauses 1 through 3, so follow suit to make comparison easier.
* Implement xlocale APIs from Darwin, mainly for use by libc++. This adds atheraven2011-11-201-2/+15
| | | | | | | | | | | | load of _l suffixed versions of various standard library functions that use the global locale, making them take an explicit locale parameter. Also adds support for per-thread locales. This work was funded by the FreeBSD Foundation. Please test any code you have that uses the C standard locale functions! Reviewed by: das (gdtoa changes) Approved by: dim (mentor)
* Per Regents of the University of Calfornia letter, remove advertisingimp2007-01-091-4/+0
| | | | | | clause. # If I've done so improperly on a file, please let me know.
* Whitespace/style tweaking of prev. commit.ache2005-01-211-4/+3
| | | | Noted by: bde
* POSIX says that 0[xX] prefix is _optional_ even in base 16 case, make itache2005-01-211-1/+5
| | | | | | | | | | really so. "If the value of base is 16, the characters 0x or 0X may optionally precede the sequence of letters and digits, following the sign if present." Found by: joerg
* Style: One space between "restrict" qualifier and "*".tjr2002-09-061-1/+1
|
* - Add the 'restrict' qualifier to the function prototypes androbert2002-08-151-4/+1
| | | | | | | | definitions of the functions that convert strings to numbers and are defined by IEEE Std 1003-1.2001. - Use ANSI-C function definitions for all of the functions mentioned above plus strtouq and strtoq. - Update the prototypes in the manual pages.
* Fix the style of the SCM ID's.obrien2002-03-221-2/+2
| | | | I believe have made all of libc .c's as consistent as possible.
* Return 'c' back to signed due to potential comparison problemsache2001-12-071-10/+12
| | | | | | Use simpler test for valid ranges Submitted by: bde
* Make it works for non ASCII compatible encodings too.ache2001-12-021-7/+7
| | | | The only assumption left is that 'A'..'Z' 'a'..'z' both are contiguous
* Back out national digits support, POSIX explicetely disallows it:ache2001-11-291-1/+1
| | | | | | | | | | | The definition of character class digit requires that only ten characters -the ones defining digits- can be specified; alternate digits (for example, Hindi or Kanji) cannot be specified here. However, the encoding may vary if an implementation supports more than one encoding. The definition of character class xdigit requires that the characters included in character class digit are included here also and allows for different symbols for the hexadecimal digits 10 through 15.
* Don't ever assume that isdigit() is always subset of isxdigit()ache2001-11-281-1/+1
|
* Base 36 is allowed.fenner2001-11-281-1/+1
|
* Put back base > 35 check. If someone dislike it, plese discuss it withache2001-11-281-1/+1
| | | | standards group first.
* Understand national (non-ASCII) digits nowache2001-11-281-13/+11
| | | | | Allow bases >=36 again Misc cleanup
* Portability fix: use unsigned cast to guaranteed positive part of expressionache2001-09-041-1/+1
| | | | | in case {L}LONG_MAX > abs({L}LONG_MIN). Non-functional change - we don't have any such platforms.
* Remove rcsids and unneded includeache2001-09-041-7/+2
|
* 'acc' is not initialized in one hypotetical case, fix itache2001-09-041-2/+2
|
* Locale *is* used in strto*l*(), at least for isspace(), so removeache2001-09-041-9/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'locale not used' statement from comments and BUGS section of manpage. strtol(): fix non-portable 'cutoff' calculation using the same method as in strtoll(). Cleanup 'cutoff' calculation, remove unneded casts. Misc. cleanup to make all functions looks the same. Implement EINVAL reaction per POSIX, document it in manpage, corresponding POSIX example quotes here: ------------------------------------------------ If the subject sequence is empty or does not have the expected form, no conversion is performed; the value of str is stored in the object pointed to by endptr, provided that endptr is not a null pointer. If no conversion could be performed, 0 shall be returned and errno may be set to [EINVAL]. [EINVAL] The value of base is not supported. Since 0, {LONG_MIN} or {LLONG_MIN}, and {LONG_MAX} or {LLONG_MAX} are returned on error and are also valid returns on success, an application wishing to check for error situations should set errno to 0, then call strtol( ) or strtoll ( ), then check errno. -----------------------------------------------------
* Impliment the ISO-C99 strto[u]ll()obrien2001-02-271-7/+13
| | | | and rewrite strto[u]q() in terms of it.
* Get rid of integer overflow warning.steve1997-08-231-1/+1
| | | | | PR: misc/3575 Submitted by: Bruce Evans <bde@zeta.org.au>
* General -Wall warning cleanup, part I.jkh1996-07-121-1/+1
| | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu>
* Similar changes like in strtol, all this family is VERY brokenache1995-08-011-1/+3
| | | | in 8bit environment (isalpha at the end of digits)
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-271-0/+136
OpenPOWER on IntegriCloud