Split large string section; add truncation advice

System Internals / glibc - Paul Eggert [cs.ucla.edu] - 10 December 2015 10:29 UTC

- manual/examples/strncat.c: Remove. This example was misleading, as the code would have undefined behavior if "hello" was longer than SIZE. Anyway, the manual shouldn't encourage strncpy+strncat for this sort of thing.
- manual/string.texi (Copying Strings and Arrays): Split into three sections Copying Strings and Arrays, Concatenating Strings, and Truncating Strings, as this section was way too long. All cross-referenced changed. Add advice about string-truncation functions. Remove misleading strncat example.

0a13c9e Split large string section; add truncation advice
ChangeLog | 13 ++
manual/examples/strncat.c | 32 ----
manual/lang.texi | 2 +-
manual/locale.texi | 4 +-
manual/memory.texi | 2 +-
manual/stdio.texi | 2 +-
manual/string.texi | 435 +++++++++++++++++++++++++--------------------
7 files changed, 263 insertions(+), 227 deletions(-)

Upstream: sourceware.org


  • Share