diff options
author | das <das@FreeBSD.org> | 2009-02-28 05:15:02 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2009-02-28 05:15:02 +0000 |
commit | 28465baaf036b1850892b050b1d72364f8804009 (patch) | |
tree | 7e902fb5273a6c2db8f3abbe37e146d679621875 /lib/libc/string/strlcpy.3 | |
parent | d6bc3f67e875e9575c6f759df2a0b47a8996ca68 (diff) | |
download | FreeBSD-src-28465baaf036b1850892b050b1d72364f8804009.zip FreeBSD-src-28465baaf036b1850892b050b1d72364f8804009.tar.gz |
Add restrict qualifiers to the parameters to strlcpy() and strlcat().
The annotation mainly just serves as a hint that they're not intended
for use with overlapping strings.
Diffstat (limited to 'lib/libc/string/strlcpy.3')
-rw-r--r-- | lib/libc/string/strlcpy.3 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/string/strlcpy.3 b/lib/libc/string/strlcpy.3 index 88af06d..aaef572 100644 --- a/lib/libc/string/strlcpy.3 +++ b/lib/libc/string/strlcpy.3 @@ -39,9 +39,9 @@ .Sh SYNOPSIS .In string.h .Ft size_t -.Fn strlcpy "char *dst" "const char *src" "size_t size" +.Fn strlcpy "char * restrict dst" "const char * restrict src" "size_t size" .Ft size_t -.Fn strlcat "char *dst" "const char *src" "size_t size" +.Fn strlcat "char * restrict dst" "const char * restrict src" "size_t size" .Sh DESCRIPTION The .Fn strlcpy |