From 28465baaf036b1850892b050b1d72364f8804009 Mon Sep 17 00:00:00 2001 From: das Date: Sat, 28 Feb 2009 05:15:02 +0000 Subject: 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. --- include/string.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/string.h b/include/string.h index 75e8558..91007f1 100644 --- a/include/string.h +++ b/include/string.h @@ -85,8 +85,8 @@ char *strerror(int); int strerror_r(int, char *, size_t); #endif #if __BSD_VISIBLE -size_t strlcat(char *, const char *, size_t); -size_t strlcpy(char *, const char *, size_t); +size_t strlcat(char * __restrict, const char * __restrict, size_t); +size_t strlcpy(char * __restrict, const char * __restrict, size_t); #endif size_t strlen(const char *) __pure; #if __BSD_VISIBLE -- cgit v1.1