Implementation of strto(u)ll, documentation and tests for strto(u)l(l)

This commit is contained in:
Erik van der Kouwe
2009-12-09 19:01:38 +00:00
parent fcaaad3317
commit 6adadade32
9 changed files with 429 additions and 17 deletions

View File

@@ -38,6 +38,19 @@
#define LONG_MAX 2147483647L /* maximum value of a long */
#define ULONG_MAX 0xFFFFFFFFL /* maximum value of an unsigned long */
/*Definitions about long longs (64 bits, may not be supported). */
#ifdef __LONG_LONG_SUPPORTED
#define LLONG_MIN (-0x7FFFFFFFFFFFFFFFLL-1) /* minimum value of a
* long long
*/
#define LLONG_MAX 0x7FFFFFFFFFFFFFFFLL /* maximum value of a
* long long
*/
#define ULLONG_MAX 0xFFFFFFFFFFFFFFFFULL /* maximum value of an
* unsigned long long
*/
#endif
#include <minix/dir.h>
/* Minimum sizes required by the POSIX P1003.1 standard (Table 2-3). */