From: solar Date: Sat, 3 Dec 2005 16:49:36 +0000 (+0000) Subject: Added helpers for strto...() functions. X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=d6ae7a6ed509d2fa7f24f491fdefbb54c22fe0cd;hp=eaa6524ce2f7499cea9633be6fba9e0de37d0210;p=fw%2Fpdclib Added helpers for strto...() functions. git-svn-id: https://srv7.svn-repos.de/dev34/pdclib/trunk@83 546481bc-9713-0410-bf18-d3337bbf4a3e --- 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[];