summaryrefslogtreecommitdiff
path: root/lib/libc/string
diff options
context:
space:
mode:
authorwiz <wiz@NetBSD.org>2006-10-16 08:48:45 +0000
committerwiz <wiz@NetBSD.org>2006-10-16 08:48:45 +0000
commit1a64d82da5bc129cc68f0719e7f18fb075f6247a (patch)
tree9bed6db34c1c483a79322f31c59f61dfc111851b /lib/libc/string
parentaba3ac5c7320e086e8a7d48af9503e42a516b69e (diff)
nul/null/NULL cleanup:
when talking about characters/bytes, use "nul" and "nul-terminate" when talking about pointers, use "null pointer" or ".Dv NULL"
Diffstat (limited to 'lib/libc/string')
-rw-r--r--lib/libc/string/bm.39
-rw-r--r--lib/libc/string/bstring.34
-rw-r--r--lib/libc/string/index.34
-rw-r--r--lib/libc/string/memccpy.34
-rw-r--r--lib/libc/string/memchr.37
-rw-r--r--lib/libc/string/rindex.37
-rw-r--r--lib/libc/string/strcasecmp.34
-rw-r--r--lib/libc/string/strcat.36
-rw-r--r--lib/libc/string/strcmp.34
-rw-r--r--lib/libc/string/strcoll.34
-rw-r--r--lib/libc/string/strcpy.310
-rw-r--r--lib/libc/string/strcspn.34
-rw-r--r--lib/libc/string/strdup.34
-rw-r--r--lib/libc/string/strerror.34
-rw-r--r--lib/libc/string/string.36
-rw-r--r--lib/libc/string/strmode.35
-rw-r--r--lib/libc/string/strpbrk.37
-rw-r--r--lib/libc/string/strrchr.35
-rw-r--r--lib/libc/string/strsep.34
-rw-r--r--lib/libc/string/strspn.34
-rw-r--r--lib/libc/string/strstr.36
-rw-r--r--lib/libc/string/strtok.34
-rw-r--r--lib/libc/string/wcstok.36
-rw-r--r--lib/libc/string/wcswidth.34
24 files changed, 65 insertions, 61 deletions
diff --git a/lib/libc/string/bm.3 b/lib/libc/string/bm.3
index 188f3570067..d5d3c8f077a 100644
--- a/lib/libc/string/bm.3
+++ b/lib/libc/string/bm.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: bm.3,v 1.7 2003/08/07 16:43:47 agc Exp $
+.\" $NetBSD: bm.3,v 1.8 2006/10/16 08:48:45 wiz Exp $
.\"
.\" Copyright (c) 1994
.\" The Regents of the University of California. All rights reserved.
@@ -76,7 +76,8 @@ more frequently.
than optimal performance, not incorrect results.)
If
.Fa freq
-is NULL,
+is
+.Dv NULL ,
a system default table is used.
.Pp
.Fn bm_exec
@@ -84,7 +85,9 @@ returns a pointer to the leftmost occurrence of the string given to
.Fn bm_comp
within
.Fa text ,
-or NULL if none occurs.
+or
+.Dv NULL
+if none occurs.
The number of bytes in
.Fa text
must be specified by
diff --git a/lib/libc/string/bstring.3 b/lib/libc/string/bstring.3
index 756d00d1b5b..fd6a92fe293 100644
--- a/lib/libc/string/bstring.3
+++ b/lib/libc/string/bstring.3
@@ -28,7 +28,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)bstring.3 8.1 (Berkeley) 6/4/93
-.\" $NetBSD: bstring.3,v 1.9 2003/08/07 16:43:47 agc Exp $
+.\" $NetBSD: bstring.3,v 1.10 2006/10/16 08:48:45 wiz Exp $
.\"
.Dd June 4, 1993
.Dt BSTRING 3
@@ -68,7 +68,7 @@
.Fn memset "void *b" "int c" "size_t len"
.Sh DESCRIPTION
These functions operate on variable length strings of bytes.
-They do not check for terminating null bytes as the routines
+They do not check for terminating nul bytes as the routines
listed in
.Xr string 3
do.
diff --git a/lib/libc/string/index.3 b/lib/libc/string/index.3
index 1c7163ce8cc..7d12070b35f 100644
--- a/lib/libc/string/index.3
+++ b/lib/libc/string/index.3
@@ -28,7 +28,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)index.3 8.1 (Berkeley) 6/4/93
-.\" $NetBSD: index.3,v 1.11 2003/08/07 16:43:48 agc Exp $
+.\" $NetBSD: index.3,v 1.12 2006/10/16 08:48:45 wiz Exp $
.\"
.Dd June 4, 1993
.Dt INDEX 3
@@ -50,7 +50,7 @@ locates the first character matching
.Fa c
(converted to a
.Em char )
-in the null-terminated string
+in the nul-terminated string
.Fa s .
.Sh RETURN VALUES
A pointer to the character is returned if it is found; otherwise
diff --git a/lib/libc/string/memccpy.3 b/lib/libc/string/memccpy.3
index 8dc68366fc5..9f6b54e0850 100644
--- a/lib/libc/string/memccpy.3
+++ b/lib/libc/string/memccpy.3
@@ -26,7 +26,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)memccpy.3 8.1 (Berkeley) 6/9/93
-.\" $NetBSD: memccpy.3,v 1.9 2003/08/07 16:43:48 agc Exp $
+.\" $NetBSD: memccpy.3,v 1.10 2006/10/16 08:48:45 wiz Exp $
.\"
.Dd June 9, 1993
.Dt MEMCCPY 3
@@ -59,7 +59,7 @@ in the string
is returned.
Otherwise,
.Fa len
-bytes are copied, and a NULL pointer is returned.
+bytes are copied, and a null pointer is returned.
.Sh SEE ALSO
.Xr bcopy 3 ,
.Xr memcpy 3 ,
diff --git a/lib/libc/string/memchr.3 b/lib/libc/string/memchr.3
index 365e6693e66..9927a1cf79b 100644
--- a/lib/libc/string/memchr.3
+++ b/lib/libc/string/memchr.3
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)memchr.3 8.1 (Berkeley) 6/4/93
-.\" $NetBSD: memchr.3,v 1.8 2003/08/07 16:43:48 agc Exp $
+.\" $NetBSD: memchr.3,v 1.9 2006/10/16 08:48:45 wiz Exp $
.\"
.Dd June 4, 1993
.Dt MEMCHR 3
@@ -57,8 +57,9 @@ in string
The
.Fn memchr
function
-returns a pointer to the byte located,
-or NULL if no such byte exists within
+returns a pointer to the byte located, or
+.Dv NULL
+if no such byte exists within
.Fa len
bytes.
.Sh SEE ALSO
diff --git a/lib/libc/string/rindex.3 b/lib/libc/string/rindex.3
index 6608807c98d..02eef4311ad 100644
--- a/lib/libc/string/rindex.3
+++ b/lib/libc/string/rindex.3
@@ -28,7 +28,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)rindex.3 8.1 (Berkeley) 6/4/93
-.\" $NetBSD: rindex.3,v 1.10 2003/08/07 16:43:49 agc Exp $
+.\" $NetBSD: rindex.3,v 1.11 2006/10/16 08:48:45 wiz Exp $
.\"
.Dd June 4, 1993
.Dt RINDEX 3
@@ -51,11 +51,12 @@ matching
.Fa c
(converted to a
.Em char )
-in the null-terminated string
+in the nul-terminated string
.Fa s .
.Sh RETURN VALUES
A pointer to the character is returned if it is found; otherwise
-NULL is returned.
+.Dv NULL
+is returned.
If
.Fa c
is
diff --git a/lib/libc/string/strcasecmp.3 b/lib/libc/string/strcasecmp.3
index 7f918a3d54b..c38b2b52352 100644
--- a/lib/libc/string/strcasecmp.3
+++ b/lib/libc/string/strcasecmp.3
@@ -28,7 +28,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)strcasecmp.3 8.1 (Berkeley) 6/9/93
-.\" $NetBSD: strcasecmp.3,v 1.16 2003/08/07 16:43:49 agc Exp $
+.\" $NetBSD: strcasecmp.3,v 1.17 2006/10/16 08:48:45 wiz Exp $
.\"
.Dd June 9, 1993
.Dt STRCASECMP 3
@@ -51,7 +51,7 @@ The
and
.Fn strncasecmp
functions
-compare the null-terminated strings
+compare the nul-terminated strings
.Fa s1
and
.Fa s2
diff --git a/lib/libc/string/strcat.3 b/lib/libc/string/strcat.3
index 8fdc4560cb4..046b2ee702d 100644
--- a/lib/libc/string/strcat.3
+++ b/lib/libc/string/strcat.3
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)strcat.3 8.1 (Berkeley) 6/4/93
-.\" $NetBSD: strcat.3,v 1.15 2003/09/08 17:54:33 wiz Exp $
+.\" $NetBSD: strcat.3,v 1.16 2006/10/16 08:48:45 wiz Exp $
.\"
.Dd August 11, 2002
.Dt STRCAT 3
@@ -53,9 +53,9 @@ The
and
.Fn strncat
functions
-append a copy of the null-terminated string
+append a copy of the nul-terminated string
.Fa append
-to the end of the null-terminated string
+to the end of the nul-terminated string
.Fa s ,
then add a terminating
.Ql \e0 .
diff --git a/lib/libc/string/strcmp.3 b/lib/libc/string/strcmp.3
index db9dfe545bf..bcafe26ca31 100644
--- a/lib/libc/string/strcmp.3
+++ b/lib/libc/string/strcmp.3
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)strcmp.3 8.1 (Berkeley) 6/4/93
-.\" $NetBSD: strcmp.3,v 1.12 2003/08/07 16:43:49 agc Exp $
+.\" $NetBSD: strcmp.3,v 1.13 2006/10/16 08:48:45 wiz Exp $
.\"
.Dd June 4, 1993
.Dt STRCMP 3
@@ -53,7 +53,7 @@ The
and
.Fn strncmp
functions
-lexicographically compare the null-terminated strings
+lexicographically compare the nul-terminated strings
.Fa s1
and
.Fa s2 .
diff --git a/lib/libc/string/strcoll.3 b/lib/libc/string/strcoll.3
index ae245d7dbbd..79cfb138eec 100644
--- a/lib/libc/string/strcoll.3
+++ b/lib/libc/string/strcoll.3
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)strcoll.3 8.1 (Berkeley) 6/4/93
-.\" $NetBSD: strcoll.3,v 1.9 2003/08/07 16:43:50 agc Exp $
+.\" $NetBSD: strcoll.3,v 1.10 2006/10/16 08:48:45 wiz Exp $
.\"
.Dd June 4, 1993
.Dt STRCOLL 3
@@ -48,7 +48,7 @@
The
.Fn strcoll
function
-lexicographically compares the null-terminated strings
+lexicographically compares the nul-terminated strings
.Fa s1
and
.Fa s2
diff --git a/lib/libc/string/strcpy.3 b/lib/libc/string/strcpy.3
index 431a3925a54..6d8c2d48793 100644
--- a/lib/libc/string/strcpy.3
+++ b/lib/libc/string/strcpy.3
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)strcpy.3 8.1 (Berkeley) 6/4/93
-.\" $NetBSD: strcpy.3,v 1.16 2003/09/08 17:54:33 wiz Exp $
+.\" $NetBSD: strcpy.3,v 1.17 2006/10/16 08:48:45 wiz Exp $
.\"
.Dd May 6, 2002
.Dt STRCPY 3
@@ -105,12 +105,12 @@ to
.Dq Li abcdef
and does
.Em not
-null terminate
+nul-terminate
.Va chararray
because the source string is \*[Gt]= the length parameter.
.Fn strncpy
.Em only
-null terminates the destination string when the length of the source
+nul-terminates the destination string when the length of the source
string is less than the length parameter.
.Bd -literal -offset indent
(void)strncpy(chararray, "abcdefgh", 6);
@@ -120,12 +120,12 @@ The following copies as many characters from
.Va input
to
.Va buf
-as will fit and null terminates the result.
+as will fit and nul-terminates the result.
Because
.Fn strncpy
does
.Em not
-guarantee to null terminate the string itself, we must do this by hand.
+guarantee to nul-terminate the string itself, we must do this by hand.
.Bd -literal -offset indent
char buf[BUFSIZ];
diff --git a/lib/libc/string/strcspn.3 b/lib/libc/string/strcspn.3
index c079588a5e8..3f5301509c7 100644
--- a/lib/libc/string/strcspn.3
+++ b/lib/libc/string/strcspn.3
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)strcspn.3 8.1 (Berkeley) 6/4/93
-.\" $NetBSD: strcspn.3,v 1.9 2003/08/07 16:43:50 agc Exp $
+.\" $NetBSD: strcspn.3,v 1.10 2006/10/16 08:48:45 wiz Exp $
.\"
.Dd August 11, 2002
.Dt STRCSPN 3
@@ -48,7 +48,7 @@
The
.Fn strcspn
function
-spans the initial part of the null-terminated string
+spans the initial part of the nul-terminated string
.Fa s
as long as the characters from
.Fa s
diff --git a/lib/libc/string/strdup.3 b/lib/libc/string/strdup.3
index 8d1c89bc08f..a5938d5191f 100644
--- a/lib/libc/string/strdup.3
+++ b/lib/libc/string/strdup.3
@@ -26,7 +26,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)strdup.3 8.1 (Berkeley) 6/9/93
-.\" $NetBSD: strdup.3,v 1.14 2006/08/13 23:19:45 wiz Exp $
+.\" $NetBSD: strdup.3,v 1.15 2006/10/16 08:48:45 wiz Exp $
.\"
.Dd August 12, 2006
.Dt STRDUP 3
@@ -71,7 +71,7 @@ terminating the copied string.
.Sh EXAMPLES
The following will point
.Va p
-to an allocated area of memory containing the null-terminated string
+to an allocated area of memory containing the nul-terminated string
.Qq foobar :
.Bd -literal -offset indent
char *p;
diff --git a/lib/libc/string/strerror.3 b/lib/libc/string/strerror.3
index 0c904175c92..4f242093f8a 100644
--- a/lib/libc/string/strerror.3
+++ b/lib/libc/string/strerror.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: strerror.3,v 1.14 2006/05/22 21:55:01 wiz Exp $
+.\" $NetBSD: strerror.3,v 1.15 2006/10/16 08:48:45 wiz Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -92,7 +92,7 @@ If the argument
.Fa string
is
.Pf non- Dv NULL
-and does not point to the null character,
+and does not point to the nul character,
this string is prepended to the message
string and separated from it by
a colon and space
diff --git a/lib/libc/string/string.3 b/lib/libc/string/string.3
index 6f560d62576..fab062f405e 100644
--- a/lib/libc/string/string.3
+++ b/lib/libc/string/string.3
@@ -28,7 +28,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)string.3 8.2 (Berkeley) 12/11/93
-.\" $NetBSD: string.3,v 1.12 2003/08/07 16:43:51 agc Exp $
+.\" $NetBSD: string.3,v 1.13 2006/10/16 08:48:45 wiz Exp $
.\"
.Dd December 11, 1993
.Dt STRING 3
@@ -105,11 +105,11 @@
.Sh DESCRIPTION
The string
functions manipulate strings terminated by a
-null byte.
+nul byte.
.Pp
See the specific manual pages for more information.
For manipulating variable length generic objects as byte
-strings (without the null byte check), see
+strings (without the nul byte check), see
.Xr bstring 3 .
.Pp
Except as noted in their specific manual pages,
diff --git a/lib/libc/string/strmode.3 b/lib/libc/string/strmode.3
index 6b77ee0a217..899800926b7 100644
--- a/lib/libc/string/strmode.3
+++ b/lib/libc/string/strmode.3
@@ -26,7 +26,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)strmode.3 8.3 (Berkeley) 7/28/94
-.\" $NetBSD: strmode.3,v 1.16 2003/08/07 16:43:51 agc Exp $
+.\" $NetBSD: strmode.3,v 1.17 2006/10/16 08:48:45 wiz Exp $
.\"
.Dd July 28, 1994
.Dt STRMODE 3
@@ -50,8 +50,7 @@ converts a file
.Xr stat 2 )
into a symbolic string which is stored in the location referenced by
.Fa bp .
-This stored string is eleven characters in length plus a trailing
-.Dv NULL .
+This stored string is eleven characters in length plus a trailing nul byte.
.Pp
The first character is the inode type, and will be one of the following:
.Pp
diff --git a/lib/libc/string/strpbrk.3 b/lib/libc/string/strpbrk.3
index fa52df65560..f0886706a3a 100644
--- a/lib/libc/string/strpbrk.3
+++ b/lib/libc/string/strpbrk.3
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)strpbrk.3 8.1 (Berkeley) 6/4/93
-.\" $NetBSD: strpbrk.3,v 1.8 2003/08/07 16:43:52 agc Exp $
+.\" $NetBSD: strpbrk.3,v 1.9 2006/10/16 08:48:45 wiz Exp $
.\"
.Dd June 4, 1993
.Dt STRPBRK 3
@@ -48,7 +48,7 @@
The
.Fn strpbrk
function
-locates in the null-terminated string
+locates in the nul-terminated string
.Fa s
the first occurrence of any character in the string
.Fa charset
@@ -58,7 +58,8 @@ If no characters from
occur anywhere in
.Fa s
.Fn strpbrk
-returns NULL.
+returns
+.Dv NULL .
.Sh SEE ALSO
.Xr index 3 ,
.Xr memchr 3 ,
diff --git a/lib/libc/string/strrchr.3 b/lib/libc/string/strrchr.3
index 47051de8f84..9e46f9e8e0b 100644
--- a/lib/libc/string/strrchr.3
+++ b/lib/libc/string/strrchr.3
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)strrchr.3 8.1 (Berkeley) 6/4/93
-.\" $NetBSD: strrchr.3,v 1.9 2003/08/07 16:43:52 agc Exp $
+.\" $NetBSD: strrchr.3,v 1.10 2006/10/16 08:48:45 wiz Exp $
.\"
.Dd August 11, 2002
.Dt STRRCHR 3
@@ -65,8 +65,7 @@ The
.Fn strrchr
function
returns a pointer to the character,
-or a null
-pointer if
+or a null pointer if
.Fa c
does not occur anywhere in
.Fa s .
diff --git a/lib/libc/string/strsep.3 b/lib/libc/string/strsep.3
index 9fedbfd161f..6589283e610 100644
--- a/lib/libc/string/strsep.3
+++ b/lib/libc/string/strsep.3
@@ -29,7 +29,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)strsep.3 8.1 (Berkeley) 6/9/93
-.\" $NetBSD: strsep.3,v 1.18 2006/08/13 23:20:52 wiz Exp $
+.\" $NetBSD: strsep.3,v 1.19 2006/10/16 08:48:45 wiz Exp $
.\"
.Dd August 12, 2006
.Dt STRSEP 3
@@ -49,7 +49,7 @@
.Sh DESCRIPTION
The
.Fn strsep
-function locates, in the null-terminated string referenced by
+function locates, in the nul-terminated string referenced by
.Fa *stringp ,
the first occurrence of any character in the string
.Fa delim
diff --git a/lib/libc/string/strspn.3 b/lib/libc/string/strspn.3
index be6177014a4..09382393ecc 100644
--- a/lib/libc/string/strspn.3
+++ b/lib/libc/string/strspn.3
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)strspn.3 8.1 (Berkeley) 6/4/93
-.\" $NetBSD: strspn.3,v 1.10 2003/08/07 16:43:52 agc Exp $
+.\" $NetBSD: strspn.3,v 1.11 2006/10/16 08:48:45 wiz Exp $
.\"
.Dd August 11, 2002
.Dt STRSPN 3
@@ -48,7 +48,7 @@
The
.Fn strspn
function
-spans the initial part of the null-terminated string
+spans the initial part of the nul-terminated string
.Fa s
as long as the characters from
.Fa s
diff --git a/lib/libc/string/strstr.3 b/lib/libc/string/strstr.3
index 26759bd925f..31fd400141d 100644
--- a/lib/libc/string/strstr.3
+++ b/lib/libc/string/strstr.3
@@ -31,7 +31,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)strstr.3 8.1 (Berkeley) 6/4/93
-.\" $NetBSD: strstr.3,v 1.9 2004/07/03 08:27:25 junyoung Exp $
+.\" $NetBSD: strstr.3,v 1.10 2006/10/16 08:48:45 wiz Exp $
.\"
.Dd July 3, 2004
.Dt STRSTR 3
@@ -51,9 +51,9 @@
The
.Fn strstr
function
-locates the first occurrence of the null-terminated string
+locates the first occurrence of the nul-terminated string
.Fa little
-in the null-terminated string
+in the nul-terminated string
.Fa big .
.Pp
The
diff --git a/lib/libc/string/strtok.3 b/lib/libc/string/strtok.3
index 11c4867c8d2..bb43af79a6a 100644
--- a/lib/libc/string/strtok.3
+++ b/lib/libc/string/strtok.3
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)strtok.3 8.2 (Berkeley) 2/3/94
-.\" $NetBSD: strtok.3,v 1.21 2004/10/11 14:22:04 dsl Exp $
+.\" $NetBSD: strtok.3,v 1.22 2006/10/16 08:48:45 wiz Exp $
.\"
.Dd August 11, 2002
.Dt STRTOK 3
@@ -50,7 +50,7 @@
The
.Fn strtok
function
-is used to isolate sequential tokens in a null-terminated string,
+is used to isolate sequential tokens in a nul-terminated string,
.Fa str .
These tokens are separated in the string by at least one of the
characters in
diff --git a/lib/libc/string/wcstok.3 b/lib/libc/string/wcstok.3
index 111a469633f..a3ba39c132e 100644
--- a/lib/libc/string/wcstok.3
+++ b/lib/libc/string/wcstok.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: wcstok.3,v 1.4 2004/01/24 16:59:30 wiz Exp $
+.\" $NetBSD: wcstok.3,v 1.5 2006/10/16 08:48:45 wiz Exp $
.\"
.\" Copyright (c) 1998 Softweyr LLC. All rights reserved.
.\"
@@ -68,7 +68,7 @@
The
.Fn wcstok
function
-is used to isolate sequential tokens in a null-terminated wide character
+is used to isolate sequential tokens in a nul-terminated wide character
string,
.Fa str .
These tokens are separated in the string by at least one of the
@@ -97,7 +97,7 @@ The
.Fn wcstok
function
returns a pointer to the beginning of each subsequent token in the string,
-after replacing the token itself with a null wide character (L'\e0').
+after replacing the token itself with a nul wide character (L'\e0').
When no more tokens remain, a null pointer is returned.
.Sh EXAMPLES
The following code fragment splits a wide character string on
diff --git a/lib/libc/string/wcswidth.3 b/lib/libc/string/wcswidth.3
index 4c1f441cef3..b7a89a9ffff 100644
--- a/lib/libc/string/wcswidth.3
+++ b/lib/libc/string/wcswidth.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: wcswidth.3,v 1.1 2006/06/03 04:36:45 tnozaki Exp $
+.\" $NetBSD: wcswidth.3,v 1.2 2006/10/16 08:48:45 wiz Exp $
.\" FreeBSD: src/lib/libc/string/wcswidth.3,v 1.2 2002/12/09 14:04:05 ru Exp
.\"
.\" Copyright (c) 2002 Tim J. Robbins
@@ -45,7 +45,7 @@ function determines the number of column positions required for the first
.Fa n
characters of
.Fa pwcs ,
-or until a null wide character (L'\e0') is encountered.
+or until a nul wide character (L'\e0') is encountered.
.Sh RETURN VALUES
The
.Fn wcswidth