X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdlib%2Fstrtoll.c;h=768da391ef3f75f08bc71d946f236325ec7e2875;hb=f603f88b4456cf9b7ab1328bf657ede22a0c9940;hp=b9b6627b6ed322cdacc689b4c4f3d43afbf20e22;hpb=d02f38605b53cdff5460cc6b9e1b2a80c3a2ba4c;p=pdclib 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;