summaryrefslogtreecommitdiff
path: root/lib/libc/stdio
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2005-02-25 03:12:45 +0000
committerChad Loder <cloder@cvs.openbsd.org>2005-02-25 03:12:45 +0000
commit8e555d953d4a7e8702ccb2d29b39ad91d179ce95 (patch)
tree6c0a9ec621640942bf2aabca87382a65abb1cd77 /lib/libc/stdio
parent8dcf2d1387109e43cabbf8b12a6bf3dd3ed2613d (diff)
Be correct in our man pages when talking about NUL termination (that is,
termination with '\0') vs. null termination. Input from krw@, jaredy@, jmc@. OK deraadt@
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r--lib/libc/stdio/fgetln.34
-rw-r--r--lib/libc/stdio/fgets.34
-rw-r--r--lib/libc/stdio/printf.34
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/stdio/fgetln.3 b/lib/libc/stdio/fgetln.3
index 78a96dc6ed4..430599bcda1 100644
--- a/lib/libc/stdio/fgetln.3
+++ b/lib/libc/stdio/fgetln.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fgetln.3,v 1.11 2004/08/20 18:17:35 millert Exp $
+.\" $OpenBSD: fgetln.3,v 1.12 2005/02/25 03:12:44 cloder Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -117,7 +117,7 @@ The
function first appeared in
.Bx 4.4 .
.Sh CAVEATS
-Since the returned buffer is not a C string (it is not null terminated), a
+Since the returned buffer is not a C string (it is not NUL terminated), a
common practice is to replace the newline character with
.Sq \e0 .
However, if the last line in a file does not contain a newline,
diff --git a/lib/libc/stdio/fgets.3 b/lib/libc/stdio/fgets.3
index e38c6e8b649..f532a4b0927 100644
--- a/lib/libc/stdio/fgets.3
+++ b/lib/libc/stdio/fgets.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fgets.3,v 1.19 2003/06/02 20:18:37 millert Exp $
+.\" $OpenBSD: fgets.3,v 1.20 2005/02/25 03:12:44 cloder Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -172,7 +172,7 @@ and the program will terminate, even if the line was valid.
.It
All C string functions, including
.Fn strchr ,
-correctly assume the end of the string is represented by a null
+correctly assume the end of the string is represented by a NUL
.Pq Sq \e0
character.
If the first character of a line returned by
diff --git a/lib/libc/stdio/printf.3 b/lib/libc/stdio/printf.3
index 4dc381043ef..4931d4e3b3d 100644
--- a/lib/libc/stdio/printf.3
+++ b/lib/libc/stdio/printf.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: printf.3,v 1.44 2004/09/18 19:28:06 otto Exp $
+.\" $OpenBSD: printf.3,v 1.45 2005/02/25 03:12:44 cloder Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -583,7 +583,7 @@ a terminating
character;
if a precision is specified, no more than the number specified are
written.
-If a precision is given, no null character
+If a precision is given, no NUL character
need be present; if the precision is not specified, or is greater than
the size of the array, the array must contain a terminating
.Tn NUL