diff options
Diffstat (limited to 'man3/string.3')
| -rw-r--r-- | man3/string.3 | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/man3/string.3 b/man3/string.3 index ab4cc3ce7e..06da21c28d 100644 --- a/man3/string.3 +++ b/man3/string.3 @@ -66,7 +66,7 @@ in the string .TP .B #include <string.h> .TP -.BI "char *stpcpy(char *" dest ", const char *" src ); +.BI "char *stpcpy(char *restrict " dest ", const char *restrict " src ); Copy a string from .I src to @@ -74,7 +74,7 @@ to returning a pointer to the end of the resulting string at .IR dest . .TP -.BI "char *strcat(char *" dest ", const char *" src ); +.BI "char *strcat(char *restrict " dest ", const char *restrict " src ); Append the string .I src to the string @@ -101,7 +101,7 @@ with .I s2 using the current locale. .TP -.BI "char *strcpy(char *" dest ", const char *" src ); +.BI "char *strcpy(char *restrict " dest ", const char *restrict " src ); Copy the string .I src to @@ -129,7 +129,8 @@ Randomly swap the characters in Return the length of the string .IR s . .TP -.BI "char *strncat(char *" dest ", const char *" src ", size_t " n ); +.BI "char *strncat(char *restrict " dest ", const char *restrict " src \ +", size_t " n ); Append at most .I n bytes from the string @@ -147,7 +148,8 @@ bytes of the strings and .IR s2 . .TP -.BI "char *strncpy(char *" dest ", const char *" src ", size_t " n ); +.BI "char *strncpy(char *restrict " dest ", const char *restrict " src \ +", size_t " n ); Copy at most .I n bytes from string @@ -188,19 +190,20 @@ in the string .IR haystack , returning a pointer to the found substring. .TP -.BI "char *strtok(char *" s ", const char *" delim ); +.BI "char *strtok(char *restrict " s ", const char *restrict " delim ); Extract tokens from the string .I s that are delimited by one of the bytes in .IR delim . .TP -.BI "size_t strxfrm(char *" dest ", const char *" src ", size_t " n ); +.BI "size_t strxfrm(char *restrict " dst ", const char *restrict " src \ +", size_t " n ); Transforms .I src to the current locale and copies the first .I n bytes to -.IR dest . +.IR dst . .SH DESCRIPTION The string functions perform operations on null-terminated strings. |
