From 043ed1f5818681c934c1f781e5c12082c79b771c Mon Sep 17 00:00:00 2001 From: robert Date: Thu, 15 Aug 2002 09:25:04 +0000 Subject: - Add the 'restrict' qualifier to the function prototypes and definitions of the functions that convert strings to numbers and are defined by IEEE Std 1003-1.2001. - Use ANSI-C function definitions for all of the functions mentioned above plus strtouq and strtoq. - Update the prototypes in the manual pages. --- lib/libc/stdlib/strtoul.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/libc/stdlib/strtoul.c') diff --git a/lib/libc/stdlib/strtoul.c b/lib/libc/stdlib/strtoul.c index ba23bd0..ee54a41 100644 --- a/lib/libc/stdlib/strtoul.c +++ b/lib/libc/stdlib/strtoul.c @@ -49,10 +49,7 @@ __FBSDID("$FreeBSD$"); * alphabets and digits are each contiguous. */ unsigned long -strtoul(nptr, endptr, base) - const char *nptr; - char **endptr; - int base; +strtoul(const char *__restrict nptr, char **__restrict endptr, int base) { const char *s; unsigned long acc; -- cgit v1.1