mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
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.
This commit is contained in:
1 parent
dce7ffd6df
commit
e00a6d21eb
4 files changed
+6
-6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=189133
No files matched your search
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user