diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2012-05-04 16:15:02 +1200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2012-05-07 15:30:16 +1200 |
| commit | a00b7454b8234ff73ac4a78e9059558596b1b788 (patch) | |
| tree | c7342b3fd3009ee1729f435a30fcc06bbe75ea3f /man3/strdup.3 | |
| parent | c95b6ae1ce254cb39fa72d331952226696487729 (diff) | |
| download | man-pages-a00b7454b8234ff73ac4a78e9059558596b1b788.tar.gz | |
confstr.3, strcasecmp.3, strcat.3, strcmp.3, strcpy.3, strdup.3, strftime.3, strlen.3, strnlen.3, strpbrk.3, strspn.3, strtok.3, strxfrm.3: Clarify that these functions operate on bytes, not (wide) characters
Change 'character(s)' to 'byte(s)' to make clear that these
functions operate on bytes, not wide / UTF8 characters.
(POSIX uses 'byte(s)' similarly, to make this point.)
Reported-by: Andries E. Brouwer <Andries.Brouwer@cwi.nl>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3/strdup.3')
| -rw-r--r-- | man3/strdup.3 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/man3/strdup.3 b/man3/strdup.3 index b74f201799..c3878ead53 100644 --- a/man3/strdup.3 +++ b/man3/strdup.3 @@ -86,9 +86,9 @@ and can be freed with The .BR strndup () function is similar, but only copies at most -\fIn\fP characters. +\fIn\fP bytes. If \fIs\fP is longer than \fIn\fP, only \fIn\fP -characters are copied, and a terminating null byte (\(aq\\0\(aq) is added. +bytes are copied, and a terminating null byte (\(aq\\0\(aq) is added. .BR strdupa () and |
