]> pd.if.org Git - pdclib/commitdiff
Added helpers for strto...() functions.
authorsolar <unknown>
Sat, 3 Dec 2005 16:49:36 +0000 (16:49 +0000)
committersolar <unknown>
Sat, 3 Dec 2005 16:49:36 +0000 (16:49 +0000)
internals/_PDCLIB_int.h

index 1f37c13bedd915fe8d96f1b2318f5f8d40658609..317173eeffaade97ea36e3aac15a7ee9530bb05d 100644 (file)
@@ -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 );
 
 /* 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 <stdlib.h>    */
 extern char _PDCLIB_digits[];
 /* Digits array used by various integer conversion functions in <stdlib.h>    */
 extern char _PDCLIB_digits[];