diff options
author | dkf <dkf@noemail.net> | 2007-04-16 13:36:33 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2007-04-16 13:36:33 (GMT) |
commit | 456b27b65d6a747ee743d375a87577bc18563b23 (patch) | |
tree | 88437ef1c667959b00a3b86ee638cc3a94300aab /compat/strtol.c | |
parent | c6c59eac39637cd6e0216f003ce2a25559a1d714 (diff) | |
download | tcl-456b27b65d6a747ee743d375a87577bc18563b23.zip tcl-456b27b65d6a747ee743d375a87577bc18563b23.tar.gz tcl-456b27b65d6a747ee743d375a87577bc18563b23.tar.bz2 |
Complete the purge of K&R function definitions from manually-written code.
FossilOrigin-Name: 645aed2fcdcd55ca81df269a4ea262eeca2b9ff2
Diffstat (limited to 'compat/strtol.c')
-rw-r--r-- | compat/strtol.c | 40 |
1 files changed, 18 insertions, 22 deletions
diff --git a/compat/strtol.c b/compat/strtol.c index b91e7d0..3779597 100644 --- a/compat/strtol.c +++ b/compat/strtol.c @@ -6,15 +6,14 @@ * Copyright (c) 1988 The Regents of the University of California. * Copyright (c) 1994 Sun Microsystems, Inc. * - * See the file "license.terms" for information on usage and redistribution - * of this file, and for a DISCLAIMER OF ALL WARRANTIES. + * See the file "license.terms" for information on usage and redistribution of + * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: strtol.c,v 1.5 2004/04/06 22:25:48 dgp Exp $ + * RCS: @(#) $Id: strtol.c,v 1.6 2007/04/16 13:36:34 dkf Exp $ */ #include <ctype.h> #include "tclInt.h" - /* *---------------------------------------------------------------------- @@ -24,11 +23,10 @@ * Convert an ASCII string into an integer. * * Results: - * The return value is the integer equivalent of string. If endPtr - * is non-NULL, then *endPtr is filled in with the character - * after the last one that was part of the integer. If string - * doesn't contain a valid integer value, then zero is returned - * and *endPtr is set to string. + * The return value is the integer equivalent of string. If endPtr is + * non-NULL, then *endPtr is filled in with the character after the last + * one that was part of the integer. If string doesn't contain a valid + * integer value, then zero is returned and *endPtr is set to string. * * Side effects: * None. @@ -37,20 +35,18 @@ */ long int -strtol(string, endPtr, base) - CONST char *string; /* String of ASCII digits, possibly - * preceded by white space. For bases - * greater than 10, either lower- or - * upper-case digits may be used. - */ - char **endPtr; /* Where to store address of terminating +strtol( + CONST char *string, /* String of ASCII digits, possibly preceded + * by white space. For bases greater than 10, + * either lower- or upper-case digits may be + * used. */ + char **endPtr, /* Where to store address of terminating * character, or NULL. */ - int base; /* Base for conversion. Must be less - * than 37. If 0, then the base is chosen - * from the leading characters of string: - * "0x" means hex, "0" means octal, anything - * else means decimal. - */ + int base) /* Base for conversion. Must be less than 37. + * If 0, then the base is chosen from the + * leading characters of string: "0x" means + * hex, "0" means octal, anything else means + * decimal. */ { register CONST char *p; long result; |