From: solar <> Date: Sat, 3 Dec 2005 16:49:36 +0000 (+0000) Subject: Added helpers for strto...() functions. X-Git-Url: https://pd.if.org/git/?a=commitdiff_plain;ds=sidebyside;h=f486bdde8d103b510fcd0aa6c2e8c5b0c34085e5;p=pdclib.old Added helpers for strto...() functions. --- diff --git a/internals/_PDCLIB_int.h b/internals/_PDCLIB_int.h index 1f37c13..317173e 100644 --- a/internals/_PDCLIB_int.h +++ b/internals/_PDCLIB_int.h @@ -259,5 +259,9 @@ typedef unsigned _PDCLIB_intmax _PDCLIB_uintmax_t; /* This is the main function called by atoi(), atol() and atoll(). */ _PDCLIB_intmax_t _PDCLIB_atomax( const char * s ); +/* Two helper functions used by strtol(), strtoul() and long long variants. */ +const char * _PDCLIB_strtox_prelim( const char * p, char * sign, int * base ); +_PDCLIB_uintmax_t _PDCLIB_strtox_main( const char ** p, int base, _PDCLIB_uintmax_t error, _PDCLIB_uintmax_t limval, int limdigit ); + /* Digits array used by various integer conversion functions in */ extern char _PDCLIB_digits[];