X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fstdlib.h;h=f84851b0df90d69aa27fbcdb0bd9a556b89e35cb;hb=fde75f89eae541144585db53ce3f7c29d069b4d2;hp=1bf1fc26872df4cbec70405f5aac9e3e95b8dc9a;hpb=d02f38605b53cdff5460cc6b9e1b2a80c3a2ba4c;p=pdclib diff --git a/includes/stdlib.h b/includes/stdlib.h index 1bf1fc2..f84851b 100644 --- a/includes/stdlib.h +++ b/includes/stdlib.h @@ -1,7 +1,5 @@ /* $Id$ */ -/* Release $Name$ */ - /* General utilities This file is part of the Public Domain C Library (PDCLib). @@ -54,6 +52,9 @@ long double strtold( const char * _PDCLIB_restrict nptr, char * * _PDCLIB_restri LLONG_MIN, LLONG_MAX, or ULLONG_MAX respectively, depending on the sign of the integer representation and the return type, and errno is set to ERANGE. */ +/* There is strtoimax() and strtoumax() in operating on intmax_t / + uintmax_t, if the long long versions do not suit your needs. +*/ long int strtol( const char * _PDCLIB_restrict nptr, char * * _PDCLIB_restrict endptr, int base ); long long int strtoll( const char * _PDCLIB_restrict nptr, char * * _PDCLIB_restrict endptr, int base ); unsigned long int strtoul( const char * _PDCLIB_restrict nptr, char * * _PDCLIB_restrict endptr, int base ); @@ -142,9 +143,9 @@ void * realloc( void * ptr, size_t size ); */ void abort( void ); -/* Register a function that will be called on exit(), _Exit(), or when main() - returns. At least 32 functions can be registered this way, and will be - called in reverse order of registration (last-in, first-out). +/* Register a function that will be called on exit(), or when main() returns. + At least 32 functions can be registered this way, and will be called in + reverse order of registration (last-in, first-out). Returns zero if registration is successfull, nonzero if it failed. */ int atexit( void (*func)( void ) );