diff options
author | dgp <dgp@users.sourceforge.net> | 2002-02-24 02:53:25 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2002-02-24 02:53:25 (GMT) |
commit | a0211643722bd3be1a1b6a97595bfc96720edb98 (patch) | |
tree | 6218488a2214453fe2c2ddca22777e70958184f2 /compat/strtoull.c | |
parent | f21907fb023f9ce87e222745ee167b897e08a98b (diff) | |
download | tcl-a0211643722bd3be1a1b6a97595bfc96720edb98.zip tcl-a0211643722bd3be1a1b6a97595bfc96720edb98.tar.gz tcl-a0211643722bd3be1a1b6a97595bfc96720edb98.tar.bz2 |
* compat/strtoull.c (strtoull):
* compat/strtoll.c (strtoll):
* compat/strtoul.c (strtoul): Fixed failure to handle leading
sign symbols '+' and '-' and '0X' and raise overflow errors.
[Bug 440916] Also corrects prototype and errno problems.
Diffstat (limited to 'compat/strtoull.c')
-rw-r--r-- | compat/strtoull.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compat/strtoull.c b/compat/strtoull.c index 9544d71..00eca3c 100644 --- a/compat/strtoull.c +++ b/compat/strtoull.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: strtoull.c,v 1.4 2002/02/22 09:04:48 dkf Exp $ + * RCS: @(#) $Id: strtoull.c,v 1.5 2002/02/24 02:53:25 dgp Exp $ */ #include "tcl.h" @@ -54,7 +54,11 @@ static char cvtIn[] = { *---------------------------------------------------------------------- */ +#if TCL_WIDE_INT_IS_LONG +unsigned long long +#else Tcl_WideUInt +#endif strtoull(string, endPtr, base) CONST char *string; /* String of ASCII digits, possibly * preceded by white space. For bases |