Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/stdio Rephrase the NOTE about embedded NUL characte...
details: https://anonhg.NetBSD.org/src/rev/e258e686e9b6
branches: trunk
changeset: 332328:e258e686e9b6
user: apb <apb%NetBSD.org@localhost>
date: Tue Sep 16 08:42:20 2014 +0000
description:
Rephrase the NOTE about embedded NUL characters, using "apparent length"
for what strlen(3) reports, and "true length" for what the return value
reports.
diffstat:
lib/libc/stdio/getdelim.3 | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (24 lines):
diff -r f202427da60a -r e258e686e9b6 lib/libc/stdio/getdelim.3
--- a/lib/libc/stdio/getdelim.3 Tue Sep 16 07:06:42 2014 +0000
+++ b/lib/libc/stdio/getdelim.3 Tue Sep 16 08:42:20 2014 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: getdelim.3,v 1.12 2014/09/15 23:41:16 christos Exp $
+.\" $NetBSD: getdelim.3,v 1.13 2014/09/16 08:42:20 apb Exp $
.\"
.\" Copyright (c) 2009 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -161,9 +161,9 @@
.Fn getdelim
and
.Fn getline
-functions can return strings with length (as returned by
+functions can return results that include
+.Dv NUL
+characters, which can cause the apparent length reported by
.Xr strlen 3
-on the returned line) less than the return value of the functions
-if the line happened to contain
-.Dv NUL
-characters.
+to be less than the true length reported by the
+return values of the functions.
Home |
Main Index |
Thread Index |
Old Index