Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/stdio - Put empty line after the local variable def...
details: https://anonhg.NetBSD.org/src/rev/97937457d296
branches: trunk
changeset: 764418:97937457d296
user: enami <enami%NetBSD.org@localhost>
date: Wed Apr 20 23:37:51 2011 +0000
description:
- Put empty line after the local variable definition in the sample code
to improve readability.
- Remove indirection operator to clarify error condition.
diffstat:
lib/libc/stdio/getdelim.3 | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r a4b9f2a611d0 -r 97937457d296 lib/libc/stdio/getdelim.3
--- a/lib/libc/stdio/getdelim.3 Wed Apr 20 20:32:38 2011 +0000
+++ b/lib/libc/stdio/getdelim.3 Wed Apr 20 23:37:51 2011 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: getdelim.3,v 1.8 2010/06/30 13:38:10 jruoho Exp $
+.\" $NetBSD: getdelim.3,v 1.9 2011/04/20 23:37:51 enami Exp $
.\"
.\" Copyright (c) 2009 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -108,6 +108,7 @@
char *line = NULL;
size_t linesize = 0;
ssize_t linelen;
+
while ((linelen = getline(\*[Am]line, \*[Am]linesize, fp)) != -1)
fwrite(line, linelen, 1, stdout);
@@ -117,9 +118,9 @@
.Sh ERRORS
.Bl -tag -width [EOVERFLOW]
.It Bq Er EINVAL
-.Fa *lineptr
+.Fa lineptr
or
-.Fa *n
+.Fa n
is a
.Dv NULL
pointer.
Home |
Main Index |
Thread Index |
Old Index