diff options
| author | Alejandro Colomar <alx@kernel.org> | 2023-11-13 01:47:47 +0100 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2023-11-13 01:50:23 +0100 |
| commit | f51cbcca1c0e12e94590bd9723e3e446ac50c33a (patch) | |
| tree | b4c9bc639da4dcac327a83b23a490257050a758e /man3/string.3 | |
| parent | 1873da38de4be3d36bb67d011b907f6f774eef82 (diff) | |
| download | man-pages-f51cbcca1c0e12e94590bd9723e3e446ac50c33a.tar.gz | |
string.3: strncpy(): Talk about bytes, not characters
These functions are also the way to copy multibyte strings, so be
generic and say that they just copy bytes. Not every byte is a valid
character in (for example) UTF-8 locales.
Cowritten-by: Paul Eggert <eggert@cs.ucla.edu>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man3/string.3')
| -rw-r--r-- | man3/string.3 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/man3/string.3 b/man3/string.3 index 4ba0a27803..4c374a7dfb 100644 --- a/man3/string.3 +++ b/man3/string.3 @@ -185,7 +185,7 @@ bytes to const char " src "[restrict ." n ], .BI " size_t " n ); .fi -Fill a fixed-width buffer with non-null characters from a source string, +Fill a fixed-width buffer with non-null bytes from a source string, padding with null bytes as needed. .SH DESCRIPTION The string functions perform operations on null-terminated |
