Module Name: src
Committed By: apb
Date: Tue Sep 16 08:42:20 UTC 2014
Modified Files:
src/lib/libc/stdio: getdelim.3
Log Message:
Rephrase the NOTE about embedded NUL characters, using "apparent length"
for what strlen(3) reports, and "true length" for what the return value
reports.
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libc/stdio/getdelim.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/stdio/getdelim.3
diff -u src/lib/libc/stdio/getdelim.3:1.12 src/lib/libc/stdio/getdelim.3:1.13
--- src/lib/libc/stdio/getdelim.3:1.12 Mon Sep 15 23:41:16 2014
+++ src/lib/libc/stdio/getdelim.3 Tue Sep 16 08:42:20 2014
@@ -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 @@ The
.Fn getdelim
and
.Fn getline
-functions can return strings with length (as returned by
-.Xr strlen 3
-on the returned line) less than the return value of the functions
-if the line happened to contain
+functions can return results that include
.Dv NUL
-characters.
+characters, which can cause the apparent length reported by
+.Xr strlen 3
+to be less than the true length reported by the
+return values of the functions.