From dd73b8f7364d97dd730f71999eab562e177a4602 Mon Sep 17 00:00:00 2001 From: solar Date: Sat, 3 Dec 2005 16:49:36 +0000 Subject: [PATCH] Added helpers for strto...() functions. --- internals/_PDCLIB_int.h | 4 ++++ 1 file changed, 4 insertions(+) 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[]; -- 2.40.0