]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/Kernel/IOStringFuncs.c
xnu-1228.5.20.tar.gz
[apple/xnu.git] / iokit / Kernel / IOStringFuncs.c
index 76172e518656b12a4a8fe47d4551d57adc425afc..7b43926d33e3c039ea2c91583fde9d57c86f13e9 100644 (file)
@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 1998-2006 Apple Computer, Inc. All rights reserved.
  *
  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  * 
  *
  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  * 
@@ -113,10 +113,7 @@ isdigit(char c)
  * alphabets and digits are each contiguous.
  */
 long
  * alphabets and digits are each contiguous.
  */
 long
-strtol(nptr, endptr, base)
-       const char *nptr;
-       char **endptr;
-       register int base;
+strtol(const char *nptr, char **endptr, int base)
 {
        register const char *s = nptr;
        register unsigned long acc;
 {
        register const char *s = nptr;
        register unsigned long acc;
@@ -199,10 +196,7 @@ strtol(nptr, endptr, base)
 }
 
 unsigned long
 }
 
 unsigned long
-strtoul(nptr, endptr, base)
-       const char *nptr;
-       char **endptr;
-       register int base;
+strtoul(const char *nptr, char **endptr, int base)
 {
        register const char *s = nptr;
        register unsigned long acc;
 {
        register const char *s = nptr;
        register unsigned long acc;
@@ -270,10 +264,7 @@ strtoul(nptr, endptr, base)
  * alphabets and digits are each contiguous.
  */
 quad_t
  * alphabets and digits are each contiguous.
  */
 quad_t
-strtoq(nptr, endptr, base)
-       const char *nptr;
-       char **endptr;
-       register int base;
+strtoq(const char *nptr, char **endptr, int base)
 {
        register const char *s;
        register u_quad_t acc;
 {
        register const char *s;
        register u_quad_t acc;
@@ -363,7 +354,7 @@ strtoq(nptr, endptr, base)
  * Ignores `locale' stuff.  Assumes that the upper and lower case
  * alphabets and digits are each contiguous.
  */
  * Ignores `locale' stuff.  Assumes that the upper and lower case
  * alphabets and digits are each contiguous.
  */
-uint64_t
+u_quad_t
 strtouq(const char *nptr,
        char **endptr,
        register int base)
 strtouq(const char *nptr,
        char **endptr,
        register int base)