summaryrefslogtreecommitdiff
path: root/lib/libc/string
diff options
context:
space:
mode:
authorwiz <wiz@NetBSD.org>2006-09-02 23:49:02 +0000
committerwiz <wiz@NetBSD.org>2006-09-02 23:49:02 +0000
commit5b76ee5cd3a3338cef24596ffb46f9c721604e3c (patch)
tree7e915a78efb8507cfec3c7b26d7816f820c41a79 /lib/libc/string
parent5891d955a549a4c5ff84d21d4623b2a396951251 (diff)
Mark up NULL; the character is nul, not null; sort SEE ALSO;
add RCS Id at top of file.
Diffstat (limited to 'lib/libc/string')
-rw-r--r--lib/libc/string/wcscasecmp.313
-rw-r--r--lib/libc/string/wcsdup.313
2 files changed, 15 insertions, 11 deletions
diff --git a/lib/libc/string/wcscasecmp.3 b/lib/libc/string/wcscasecmp.3
index 3eabac42f77..ca89e902e33 100644
--- a/lib/libc/string/wcscasecmp.3
+++ b/lib/libc/string/wcscasecmp.3
@@ -1,3 +1,5 @@
+.\" $NetBSD: wcscasecmp.3,v 1.2 2006/09/02 23:49:02 wiz Exp $
+.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -28,9 +30,8 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)wcscasecmp.3 8.1 (Berkeley) 6/9/93
-.\" $NetBSD: wcscasecmp.3,v 1.1 2006/08/26 22:48:50 christos Exp $
.\"
-.Dd 24 8, 2006
+.Dd August 26, 2006
.Dt WCSCASECMP 3
.Os
.Sh NAME
@@ -51,7 +52,7 @@ The
and
.Fn wcsncasecmp
functions
-compare the null-terminated strings
+compare the nul-terminated strings
.Fa s1
and
.Fa s2
@@ -69,17 +70,17 @@ compares at most
.Fa len
characters.
.Sh SEE ALSO
-.Xr wcscmp 3 ,
+.Xr wcscmp 3
.Sh HISTORY
The
.Fn wcscasecmp
and
.Fn wcsncasecmp
functions first appeared in
-.Nx 4.0
+.Nx 4.0 .
.Sh NOTES
If
.Fa len
-is zero
+is zero,
.Fn wcsncasecmp
returns always 0.
diff --git a/lib/libc/string/wcsdup.3 b/lib/libc/string/wcsdup.3
index c9e01c609a6..d47b6e35517 100644
--- a/lib/libc/string/wcsdup.3
+++ b/lib/libc/string/wcsdup.3
@@ -1,3 +1,5 @@
+.\" $NetBSD: wcsdup.3,v 1.2 2006/09/02 23:49:36 wiz Exp $
+.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -26,7 +28,6 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)strdup.3 8.1 (Berkeley) 6/9/93
-.\" $NetBSD: wcsdup.3,v 1.1 2006/08/26 22:48:50 christos Exp $
.\"
.Dd August 25, 2006
.Dt WCSDUP 3
@@ -52,11 +53,13 @@ The pointer may subsequently be used as an
argument to the function
.Xr free 3 .
.Pp
-If insufficient memory is available, NULL is returned.
+If insufficient memory is available,
+.Dv NULL
+is returned.
.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
wchar_t *p;
@@ -74,9 +77,9 @@ function may fail and set the external variable
for any of the errors specified for the library function
.Xr malloc 3 .
.Sh SEE ALSO
-.Xr malloc 3 ,
.Xr free 3 ,
-.Xr strdup 3 ,
+.Xr malloc 3 ,
+.Xr strdup 3
.Sh HISTORY
The
.Fn wcsdup