From: solar Date: Sat, 3 Dec 2005 16:49:36 +0000 (+0000) Subject: Added helpers for strto...() functions. X-Git-Tag: v0.4~57 X-Git-Url: https://pd.if.org/git/?p=pdclib;a=commitdiff_plain;h=dd73b8f7364d97dd730f71999eab562e177a4602 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[];