History log of /freebsd/lib/libc/stdlib/strtoll.c (Results 51 – 59 of 59)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 2505b3ed 04-Sep-2001 Andrey A. Chernov <ache@FreeBSD.org>

Portability fix: use unsigned cast to guaranteed positive part of expression
in case {L}LONG_MAX > abs({L}LONG_MIN). Non-functional change - we don't
have any such platforms.


# f8ade0e6 04-Sep-2001 Andrey A. Chernov <ache@FreeBSD.org>

Remove rcsids and unneded include


# f4fc08f3 04-Sep-2001 Andrey A. Chernov <ache@FreeBSD.org>

'acc' is not initialized in one hypotetical case, fix it


# 4e6b1570 04-Sep-2001 Andrey A. Chernov <ache@FreeBSD.org>

Locale *is* used in strto*l*(), at least for isspace(), so remove
'locale not used' statement from comments and BUGS section of manpage.

strtol(): fix non-portable 'cutoff' calculation using the sam

Locale *is* used in strto*l*(), at least for isspace(), so remove
'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.
-----------------------------------------------------

show more ...


Revision tags: release/4.3.0_cvs, release/4.3.0
# 4c0440cb 27-Feb-2001 David E. O'Brien <obrien@FreeBSD.org>

Impliment the ISO-C99 strto[u]ll()
and rewrite strto[u]q() in terms of it.


Revision tags: release/4.2.0, release/4.1.1_cvs, release/4.1.0, release/3.5.0_cvs, release/4.0.0_cvs, release/3.4.0_cvs, release/3.3.0_cvs, release/3.2.0, release/3.1.0, release/3.0.0, release/2.2.8, release/2.2.7, release/2.2.6, release/2.2.5_cvs
# a89989b2 24-Aug-1997 Steve Price <steve@FreeBSD.org>

Get rid of integer overflow warning.

PR: misc/3575
Submitted by: Bruce Evans <bde@zeta.org.au>


Revision tags: release/2.2.2_cvs, release/2.2.1_cvs, release/2.2.0, release/2.1.7_cvs, release/2.1.6_cvs, release/2.1.6.1, release/2.1.5_cvs
# 51295a4d 12-Jul-1996 Jordan K. Hubbard <jkh@FreeBSD.org>

General -Wall warning cleanup, part I.
Submitted-By: Kent Vander Velden <graphix@iastate.edu>


Revision tags: release/2.1.0_cvs
# e7241b8f 02-Aug-1995 Andrey A. Chernov <ache@FreeBSD.org>

Similar changes like in strtol, all this family is VERY broken
in 8bit environment (isalpha at the end of digits)


Revision tags: release/2.0.5_cvs, release/2.0, release/1.1.5.1_cvs
# 58f0484f 27-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite Lib Sources


123