Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/stdio Make HTML-ready, use standard section headers...



details:   https://anonhg.NetBSD.org/src/rev/d7c55efb74f8
branches:  trunk
changeset: 749506:d7c55efb74f8
user:      wiz <wiz%NetBSD.org@localhost>
date:      Tue Dec 01 08:15:50 2009 +0000

description:
Make HTML-ready, use standard section headers, fix Xr.

diffstat:

 lib/libc/stdio/getdelim.3 |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 5f617daa38c0 -r d7c55efb74f8 lib/libc/stdio/getdelim.3
--- a/lib/libc/stdio/getdelim.3 Tue Dec 01 08:02:50 2009 +0000
+++ b/lib/libc/stdio/getdelim.3 Tue Dec 01 08:15:50 2009 +0000
@@ -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))



Home | Main Index | Thread Index | Old Index