X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdlib%2Fstrtoll.c;h=768da391ef3f75f08bc71d946f236325ec7e2875;hb=a6dd99e5c0b3af81082d24751218c21f7f3e7443;hp=b9b6627b6ed322cdacc689b4c4f3d43afbf20e22;hpb=12e17136786afb1775c9dc946cbe41f5e230c24a;p=pdclib.old diff --git a/functions/stdlib/strtoll.c b/functions/stdlib/strtoll.c index b9b6627..768da39 100644 --- a/functions/stdlib/strtoll.c +++ b/functions/stdlib/strtoll.c @@ -1,7 +1,5 @@ /* $Id$ */ -/* Release $Name$ */ - /* strtoll( const char *, char * *, int ) This file is part of the Public Domain C Library (PDCLib). @@ -28,6 +26,7 @@ long long int strtoll( const char * s, char ** endptr, int base ) else { /* FIXME: This breaks on some machines that round negatives wrongly */ + /* FIXME: Sign error not caught by testdriver */ rc = _PDCLIB_strtox_main( &p, (unsigned)base, (uintmax_t)LLONG_MIN, (uintmax_t)( LLONG_MIN / -base ), (uintmax_t)( -( LLONG_MIN % base ) ), &sign ); } if ( endptr != NULL ) *endptr = ( p != NULL ) ? (char *) p : (char *) s;