Module Name: src Committed By: christos Date: Mon Sep 15 23:41:16 UTC 2014
Modified Files: src/lib/libc/stdio: getdelim.3 Log Message: mention what happens if the line contains NUL's. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 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.11 src/lib/libc/stdio/getdelim.3:1.12 --- src/lib/libc/stdio/getdelim.3:1.11 Mon Sep 15 19:31:17 2014 +++ src/lib/libc/stdio/getdelim.3 Mon Sep 15 19:41:16 2014 @@ -1,4 +1,4 @@ -.\" $NetBSD: getdelim.3,v 1.11 2014/09/15 23:31:17 christos Exp $ +.\" $NetBSD: getdelim.3,v 1.12 2014/09/15 23:41:16 christos Exp $ .\" .\" Copyright (c) 2009 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -147,7 +147,8 @@ or .Sh SEE ALSO .Xr ferror 3 , .Xr fgets 3 , -.Xr fopen 3 +.Xr fopen 3 , +.Xr strlen 3 .Sh STANDARDS The .Fn getdelim @@ -155,3 +156,14 @@ and .Fn getline functions conform to .St -p1003.1-2008 . +.Sh NOTES +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 +.Dv NUL +characters.