diff options
author | robert <robert@FreeBSD.org> | 2002-08-14 21:01:04 +0000 |
---|---|---|
committer | robert <robert@FreeBSD.org> | 2002-08-14 21:01:04 +0000 |
commit | c892b9928158be63c8856eff5a33bbf7bba79c49 (patch) | |
tree | e1369246118f3bf6fccf05ddfa05b502e0c9ff62 /lib/libc | |
parent | af770662f5873b76efc3233fab18400da9bded1d (diff) | |
download | FreeBSD-src-c892b9928158be63c8856eff5a33bbf7bba79c49.zip FreeBSD-src-c892b9928158be63c8856eff5a33bbf7bba79c49.tar.gz |
- Add the 'restrict' qualifier required by IEEE Std 1003.1-2001
to the function definition of strxfrm(3) in form of our
'__restrict' macro.
- Use an ANSI-C function definition for strxfrm(3).
- Change the manual page accordingly.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/string/strxfrm.3 | 2 | ||||
-rw-r--r-- | lib/libc/string/strxfrm.c | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/lib/libc/string/strxfrm.3 b/lib/libc/string/strxfrm.3 index e3efbd8..9cd584e 100644 --- a/lib/libc/string/strxfrm.3 +++ b/lib/libc/string/strxfrm.3 @@ -47,7 +47,7 @@ .Sh SYNOPSIS .In string.h .Ft size_t -.Fn strxfrm "char *dst" "const char *src" "size_t n" +.Fn strxfrm "char *restrict dst" "const char *restrict src" "size_t n" .Sh DESCRIPTION The .Fn strxfrm diff --git a/lib/libc/string/strxfrm.c b/lib/libc/string/strxfrm.c index d19bdff..3e57a3c 100644 --- a/lib/libc/string/strxfrm.c +++ b/lib/libc/string/strxfrm.c @@ -33,10 +33,7 @@ __FBSDID("$FreeBSD$"); #include "collate.h" size_t -strxfrm(dest, src, len) - char *dest; - const char *src; - size_t len; +strxfrm(char *__restrict dest, const char *__restrict src, size_t len) { int prim, sec, l; size_t slen; |