diff options
author | 2005-02-25 03:12:43 +0000 | |
---|---|---|
committer | 2005-02-25 03:12:43 +0000 | |
commit | 1e5ede29f718fe4f17c128f8fde29ac3824349f1 (patch) | |
tree | fd6e65cd34239687cd19bb98f99ffdf5a9155023 /lib/libc/stdio | |
parent | Fix an obviously incorrect call to memset. '0' and 0 are not the same (diff) | |
download | wireguard-openbsd-1e5ede29f718fe4f17c128f8fde29ac3824349f1.tar.xz wireguard-openbsd-1e5ede29f718fe4f17c128f8fde29ac3824349f1.zip |
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.3 | 4 | ||||
-rw-r--r-- | lib/libc/stdio/fgets.3 | 4 | ||||
-rw-r--r-- | lib/libc/stdio/printf.3 | 4 |
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 |