summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/strtoimax.c
diff options
context:
space:
mode:
authorrobert <robert@FreeBSD.org>2002-08-15 09:25:04 +0000
committerrobert <robert@FreeBSD.org>2002-08-15 09:25:04 +0000
commit043ed1f5818681c934c1f781e5c12082c79b771c (patch)
treeb37b20746e471ae334376a361c54543969e8e35f /lib/libc/stdlib/strtoimax.c
parentef527f85f2070c1b71c9b8a28ed1d2b937e93ef0 (diff)
downloadFreeBSD-src-043ed1f5818681c934c1f781e5c12082c79b771c.zip
FreeBSD-src-043ed1f5818681c934c1f781e5c12082c79b771c.tar.gz
- 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.
Diffstat (limited to 'lib/libc/stdlib/strtoimax.c')
-rw-r--r--lib/libc/stdlib/strtoimax.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libc/stdlib/strtoimax.c b/lib/libc/stdlib/strtoimax.c
index 5f86e3a..a41c74f 100644
--- a/lib/libc/stdlib/strtoimax.c
+++ b/lib/libc/stdlib/strtoimax.c
@@ -49,10 +49,7 @@ __FBSDID("$FreeBSD$");
* alphabets and digits are each contiguous.
*/
intmax_t
-strtoimax(nptr, endptr, base)
- const char *nptr;
- char **endptr;
- int base;
+strtoimax(const char *__restrict nptr, char **__restrict endptr, int base)
{
const char *s;
uintmax_t acc;
OpenPOWER on IntegriCloud