Module Name: src Committed By: wiz Date: Tue Dec 1 08:15:50 UTC 2009
Modified Files: src/lib/libc/stdio: getdelim.3 Log Message: Make HTML-ready, use standard section headers, fix Xr. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 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.5 src/lib/libc/stdio/getdelim.3:1.6 --- src/lib/libc/stdio/getdelim.3:1.5 Mon Nov 30 23:23:29 2009 +++ src/lib/libc/stdio/getdelim.3 Tue Dec 1 08:15:50 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: getdelim.3,v 1.5 2009/11/30 23:23:29 roy Exp $ +.\" $NetBSD: getdelim.3,v 1.6 2009/12/01 08:15:50 wiz Exp $ .\" .\" Copyright (c) 2009 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -73,7 +73,7 @@ must be representable as an unsigned char, and .Fa *lineptr must be a -.Xr free(3) Ns No able +.Xr free 3 Ns No able buffer. .Pp .Fa getline @@ -98,14 +98,14 @@ and .Xr ferror 3 to determine which occurred. -.Sh EXAMPLE +.Sh EXAMPLES The following code fragment reads lines from a file and writes them to standard output. .Bd -literal -offset indent char *line = NULL; size_t linesize = 0; ssize_t linelen; -while ((linelen = getline(&line, &linesize, fp)) != -1) +while ((linelen = getline(\*[Am]line, \*[Am]linesize, fp)) != -1) fwrite(line, linelen, 1, stdout); if (ferror(fp))