aboutsummaryrefslogtreecommitdiffstats
path: root/man3/string.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/string.3')
-rw-r--r--man3/string.326
1 files changed, 18 insertions, 8 deletions
diff --git a/man3/string.3 b/man3/string.3
index 8cd7940372..32e9d8f5a0 100644
--- a/man3/string.3
+++ b/man3/string.3
@@ -26,7 +26,8 @@ and
.I s2
ignoring case.
.TP
-.BI "int strncasecmp(const char *" s1 ", const char *" s2 ", size_t " n );
+.BI "int strncasecmp(const char " s1 [. n "], const char " s2 [. n "], \
+size_t " n );
Compare the first
.I n
bytes of the strings
@@ -112,8 +113,11 @@ Randomly swap the characters in
Return the length of the string
.IR s .
.TP
-.BI "char *strncat(char *restrict " dest ", const char *restrict " src \
-", size_t " n );
+.nf
+.BI "char *strncat(char " dest "[restrict ." n "], \
+const char " src "[restrict ." n ],
+.BI " size_t " n );
+.fi
Append at most
.I n
bytes from the string
@@ -123,7 +127,7 @@ to the string
returning a pointer to
.IR dest .
.TP
-.BI "int strncmp(const char *" s1 ", const char *" s2 ", size_t " n );
+.BI "int strncmp(const char " s1 [. n "], const char " s2 [. n "], size_t " n );
Compare at most
.I n
bytes of the strings
@@ -131,8 +135,11 @@ bytes of the strings
and
.IR s2 .
.TP
-.BI "char *strncpy(char *restrict " dest ", const char *restrict " src \
-", size_t " n );
+.nf
+.BI "char *strncpy(char " dest "[restrict ." n "], \
+const char " src "[restrict ." n ],
+.BI " size_t " n );
+.fi
Copy at most
.I n
bytes from string
@@ -179,8 +186,11 @@ Extract tokens from the string
that are delimited by one of the bytes in
.IR delim .
.TP
-.BI "size_t strxfrm(char *restrict " dst ", const char *restrict " src \
-", size_t " n );
+.nf
+.BI "size_t strxfrm(char " dst "[restrict ." n "], \
+const char " src "[restrict ." n ],
+.BI " size_t " n );
+.fi
Transforms
.I src
to the current locale and copies the first