summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/strtouq.c
AgeCommit message (Collapse)Author
2008-08-26fix range of strtouq(), from Henning Petersen per PR lib/39399drochner
2008-08-20Unify the implementation of strto{l,ul,ll,ull,imax,umax,q,uq} into onejoerg
version for signed and one version for unsigned data types. Add a check for supported bases and set errno (userland) or panic (kernel, libsa) otherwise. Make strto{ll,ull,imax,umax} normal symbols and just keep the underscore versions as strong alias. Obtained from DragonFly, based on the wide char version from Citrus. Reviewed by christos@
2005-11-29WARNS=4christos
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22280, verified by myself.
2000-05-16Workaround no longer needed, now that the compiler is fixed.is
2000-05-02Add the (void)&acc; hack from strtouq.c to strtoull.c. This works aroundis
an arm32 compiler bug. Change the comment in strtouq.c to reflect the current usage of the hack.
2000-03-08No longer need internal names for strtoq() and strtouq().kleink
1999-09-20back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.lukem
_DIAGASSERT() is still retained.
1999-09-16* use _DIAGASSERT() to check pointer arguments against NULL and filelukem
descriptors against -1 (as appropriate). * add actual checks which to detect stuff that would trigger_DIAGASSERT(), and attempt to return a sane error condition. * knf some code * remove some `register' decls. the first two items result in the addition of code similar to the following in various functions: _DIAGASSERT(path != NULL) #ifdef _DIAGNOSTIC if (path == NULL) { errno = EFAULT; return (-1); } #endif
1999-08-17Make some needed weak aliases.mycroft
1998-11-15delintchristos
1998-02-03Nuke `register', deal with GCC warnings.mycroft
1998-01-30update to lite-2perry
1997-07-13Add local.h for local prototypes.christos
Fix namespace issues for strtoq and strtouq Fix gcc warnings. Fix RCSID's
1996-07-20Changing type of "c" to unsigned did not fix the problem --- a signedjtc
char is sign extended before it is assigned to an unsigned int. This fix, which has been tested with a different testcase, adds casts to signed chars which results in proper behavior.
1996-07-11The argument to isfoo() must be representable as an unsigned char, sojtc
type of "c" has been changed to unsigned. This change allows these functions will work with strings with their 8th bit set.
1995-12-21Rearrange to avoid sign problems with GCC.mycroft
1995-12-20Minor cleanup.mycroft
1994-01-04Fix two compiler warnings.mycroft
1994-01-03Integrate strtoq() and strtouq() from bsd-sources on uunet.jtc