summaryrefslogtreecommitdiff
path: root/src/lib/libc/string
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/string')
-rw-r--r--src/lib/libc/string/bstring.34
-rw-r--r--src/lib/libc/string/strcasecmp.34
-rw-r--r--src/lib/libc/string/strcat.36
-rw-r--r--src/lib/libc/string/strcmp.34
-rw-r--r--src/lib/libc/string/strcoll.34
-rw-r--r--src/lib/libc/string/strcpy.310
-rw-r--r--src/lib/libc/string/strcspn.34
-rw-r--r--src/lib/libc/string/strdup.34
-rw-r--r--src/lib/libc/string/string.36
-rw-r--r--src/lib/libc/string/strmode.34
-rw-r--r--src/lib/libc/string/strpbrk.34
-rw-r--r--src/lib/libc/string/strspn.34
-rw-r--r--src/lib/libc/string/strstr.36
-rw-r--r--src/lib/libc/string/strtok.34
14 files changed, 34 insertions, 34 deletions
diff --git a/src/lib/libc/string/bstring.3 b/src/lib/libc/string/bstring.3
index d33a3c1e79..bcb5ac98fc 100644
--- a/src/lib/libc/string/bstring.3
+++ b/src/lib/libc/string/bstring.3
@@ -27,7 +27,7 @@
27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28.\" SUCH DAMAGE. 28.\" SUCH DAMAGE.
29.\" 29.\"
30.\" $OpenBSD: bstring.3,v 1.6 2004/02/10 14:35:35 jmc Exp $ 30.\" $OpenBSD: bstring.3,v 1.7 2005/02/25 03:12:44 cloder Exp $
31.\" 31.\"
32.Dd April 19, 1991 32.Dd April 19, 1991
33.Dt BSTRING 3 33.Dt BSTRING 3
@@ -57,7 +57,7 @@
57.Fn memset "void *b" "int c" "size_t len" 57.Fn memset "void *b" "int c" "size_t len"
58.Sh DESCRIPTION 58.Sh DESCRIPTION
59These functions operate on variable length strings of bytes. 59These functions operate on variable length strings of bytes.
60They do not check for terminating null bytes as the routines 60They do not check for terminating NUL bytes as the routines
61listed in 61listed in
62.Xr string 3 62.Xr string 3
63do. 63do.
diff --git a/src/lib/libc/string/strcasecmp.3 b/src/lib/libc/string/strcasecmp.3
index e1f5d416d1..c4253e5afd 100644
--- a/src/lib/libc/string/strcasecmp.3
+++ b/src/lib/libc/string/strcasecmp.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: strcasecmp.3,v 1.8 2003/06/02 20:18:38 millert Exp $ 1.\" $OpenBSD: strcasecmp.3,v 1.9 2005/02/25 03:12:44 cloder Exp $
2.\" 2.\"
3.\" Copyright (c) 1990, 1991, 1993 3.\" Copyright (c) 1990, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -49,7 +49,7 @@ The
49.Fn strcasecmp 49.Fn strcasecmp
50and 50and
51.Fn strncasecmp 51.Fn strncasecmp
52functions compare the null-terminated strings 52functions compare the NUL-terminated strings
53.Fa s1 53.Fa s1
54and 54and
55.Fa s2 55.Fa s2
diff --git a/src/lib/libc/string/strcat.3 b/src/lib/libc/string/strcat.3
index 5b878c3e8c..89d368c3fb 100644
--- a/src/lib/libc/string/strcat.3
+++ b/src/lib/libc/string/strcat.3
@@ -29,7 +29,7 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: strcat.3,v 1.9 2003/06/02 20:18:38 millert Exp $ 32.\" $OpenBSD: strcat.3,v 1.10 2005/02/25 03:12:44 cloder Exp $
33.\" 33.\"
34.Dd July 8, 1997 34.Dd July 8, 1997
35.Dt STRCAT 3 35.Dt STRCAT 3
@@ -49,9 +49,9 @@ The
49.Fn strcat 49.Fn strcat
50and 50and
51.Fn strncat 51.Fn strncat
52functions append a copy of the null-terminated string 52functions append a copy of the NUL-terminated string
53.Fa append 53.Fa append
54to the end of the null-terminated string 54to the end of the NUL-terminated string
55.Fa s , 55.Fa s ,
56then add a terminating 56then add a terminating
57.Ql \e0 . 57.Ql \e0 .
diff --git a/src/lib/libc/string/strcmp.3 b/src/lib/libc/string/strcmp.3
index d025b9cf7c..953181e8de 100644
--- a/src/lib/libc/string/strcmp.3
+++ b/src/lib/libc/string/strcmp.3
@@ -29,7 +29,7 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: strcmp.3,v 1.7 2003/06/02 20:18:38 millert Exp $ 32.\" $OpenBSD: strcmp.3,v 1.8 2005/02/25 03:12:44 cloder Exp $
33.\" 33.\"
34.Dd June 29, 1991 34.Dd June 29, 1991
35.Dt STRCMP 3 35.Dt STRCMP 3
@@ -49,7 +49,7 @@ The
49.Fn strcmp 49.Fn strcmp
50and 50and
51.Fn strncmp 51.Fn strncmp
52functions lexicographically compare the null-terminated strings 52functions lexicographically compare the NUL-terminated strings
53.Fa s1 53.Fa s1
54and 54and
55.Fa s2 . 55.Fa s2 .
diff --git a/src/lib/libc/string/strcoll.3 b/src/lib/libc/string/strcoll.3
index fe0ff35510..d1a4e60dc6 100644
--- a/src/lib/libc/string/strcoll.3
+++ b/src/lib/libc/string/strcoll.3
@@ -29,7 +29,7 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: strcoll.3,v 1.5 2003/06/02 20:18:38 millert Exp $ 32.\" $OpenBSD: strcoll.3,v 1.6 2005/02/25 03:12:44 cloder Exp $
33.\" 33.\"
34.Dd June 29, 1991 34.Dd June 29, 1991
35.Dt STRCOLL 3 35.Dt STRCOLL 3
@@ -44,7 +44,7 @@
44.Sh DESCRIPTION 44.Sh DESCRIPTION
45The 45The
46.Fn strcoll 46.Fn strcoll
47function lexicographically compares the null-terminated strings 47function lexicographically compares the NUL-terminated strings
48.Fa s1 48.Fa s1
49and 49and
50.Fa s2 50.Fa s2
diff --git a/src/lib/libc/string/strcpy.3 b/src/lib/libc/string/strcpy.3
index 8304508df6..504f42f2ba 100644
--- a/src/lib/libc/string/strcpy.3
+++ b/src/lib/libc/string/strcpy.3
@@ -29,7 +29,7 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: strcpy.3,v 1.12 2003/06/02 20:18:38 millert Exp $ 32.\" $OpenBSD: strcpy.3,v 1.13 2005/02/25 03:12:44 cloder Exp $
33.\" 33.\"
34.Dd June 29, 1991 34.Dd June 29, 1991
35.Dt STRCPY 3 35.Dt STRCPY 3
@@ -98,12 +98,12 @@ to
98.Dq abcdef 98.Dq abcdef
99and does 99and does
100.Em not 100.Em not
101null terminate 101NUL terminate
102.Va chararray 102.Va chararray
103because the source string is >= the length parameter. 103because the source string is >= the length parameter.
104.Fn strncpy 104.Fn strncpy
105.Em only 105.Em only
106null terminates the destination string when the length of the source 106NUL terminates the destination string when the length of the source
107string is less than the length parameter. 107string is less than the length parameter.
108.Bd -literal -offset indent 108.Bd -literal -offset indent
109(void)strncpy(chararray, "abcdefgh", 6); 109(void)strncpy(chararray, "abcdefgh", 6);
@@ -113,12 +113,12 @@ The following copies as many characters from
113.Va input 113.Va input
114to 114to
115.Va buf 115.Va buf
116as will fit and null terminates the result. 116as will fit and NUL terminates the result.
117Because 117Because
118.Fn strncpy 118.Fn strncpy
119does 119does
120.Em not 120.Em not
121guarantee to null terminate the string itself, we must do this by hand. 121guarantee to NUL terminate the string itself, we must do this by hand.
122.Bd -literal -offset indent 122.Bd -literal -offset indent
123char buf[BUFSIZ]; 123char buf[BUFSIZ];
124 124
diff --git a/src/lib/libc/string/strcspn.3 b/src/lib/libc/string/strcspn.3
index 6dfe1b276e..c28d99a901 100644
--- a/src/lib/libc/string/strcspn.3
+++ b/src/lib/libc/string/strcspn.3
@@ -29,7 +29,7 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: strcspn.3,v 1.6 2003/06/02 20:18:38 millert Exp $ 32.\" $OpenBSD: strcspn.3,v 1.7 2005/02/25 03:12:44 cloder Exp $
33.\" 33.\"
34.Dd June 29, 1991 34.Dd June 29, 1991
35.Dt STRCSPN 3 35.Dt STRCSPN 3
@@ -44,7 +44,7 @@
44.Sh DESCRIPTION 44.Sh DESCRIPTION
45The 45The
46.Fn strcspn 46.Fn strcspn
47function spans the initial part of the null-terminated string 47function spans the initial part of the NUL-terminated string
48.Fa s 48.Fa s
49as long as the characters from 49as long as the characters from
50.Fa s 50.Fa s
diff --git a/src/lib/libc/string/strdup.3 b/src/lib/libc/string/strdup.3
index 59b77f7a16..a434312c42 100644
--- a/src/lib/libc/string/strdup.3
+++ b/src/lib/libc/string/strdup.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: strdup.3,v 1.12 2003/06/02 20:18:38 millert Exp $ 1.\" $OpenBSD: strdup.3,v 1.13 2005/02/25 03:12:44 cloder Exp $
2.\" 2.\"
3.\" Copyright (c) 1990, 1991, 1993 3.\" Copyright (c) 1990, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -54,7 +54,7 @@ is returned.
54.Sh EXAMPLES 54.Sh EXAMPLES
55The following will point 55The following will point
56.Va p 56.Va p
57to an allocated area of memory containing the null-terminated string 57to an allocated area of memory containing the NUL-terminated string
58.Qq foobar : 58.Qq foobar :
59.Bd -literal -offset indent 59.Bd -literal -offset indent
60char *p; 60char *p;
diff --git a/src/lib/libc/string/string.3 b/src/lib/libc/string/string.3
index 89034ac24c..690cf4dbda 100644
--- a/src/lib/libc/string/string.3
+++ b/src/lib/libc/string/string.3
@@ -27,7 +27,7 @@
27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28.\" SUCH DAMAGE. 28.\" SUCH DAMAGE.
29.\" 29.\"
30.\" $OpenBSD: string.3,v 1.10 2004/02/09 20:53:12 jmc Exp $ 30.\" $OpenBSD: string.3,v 1.11 2005/02/25 03:12:44 cloder Exp $
31.\" 31.\"
32.Dd April 19, 1991 32.Dd April 19, 1991
33.Dt STRING 3 33.Dt STRING 3
@@ -84,11 +84,11 @@
84.Sh DESCRIPTION 84.Sh DESCRIPTION
85The string functions 85The string functions
86manipulate strings terminated by a 86manipulate strings terminated by a
87null byte. 87NUL byte.
88.Pp 88.Pp
89See the specific manual pages for more information. 89See the specific manual pages for more information.
90For manipulating variable length generic objects as byte 90For manipulating variable length generic objects as byte
91strings (without the null byte check), see 91strings (without the NUL-byte check), see
92.Xr bstring 3 . 92.Xr bstring 3 .
93.Pp 93.Pp
94Except as noted in their specific manual pages, 94Except as noted in their specific manual pages,
diff --git a/src/lib/libc/string/strmode.3 b/src/lib/libc/string/strmode.3
index bc45c4ce1f..3a7a4bb3fa 100644
--- a/src/lib/libc/string/strmode.3
+++ b/src/lib/libc/string/strmode.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: strmode.3,v 1.11 2003/09/02 18:24:21 jmc Exp $ 1.\" $OpenBSD: strmode.3,v 1.12 2005/02/25 03:12:44 cloder Exp $
2.\" 2.\"
3.\" Copyright (c) 1990, 1991, 1993 3.\" Copyright (c) 1990, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -48,7 +48,7 @@ function converts a file
48.Xr stat 2 ) 48.Xr stat 2 )
49into a symbolic string which is stored in the location referenced by 49into a symbolic string which is stored in the location referenced by
50.Fa bp . 50.Fa bp .
51This stored string is eleven characters in length plus a trailing null byte. 51This stored string is eleven characters in length plus a trailing NUL byte.
52.Pp 52.Pp
53The first character is the inode type, and will be one of the following: 53The first character is the inode type, and will be one of the following:
54.Pp 54.Pp
diff --git a/src/lib/libc/string/strpbrk.3 b/src/lib/libc/string/strpbrk.3
index 7e54f9de54..e91776a0ca 100644
--- a/src/lib/libc/string/strpbrk.3
+++ b/src/lib/libc/string/strpbrk.3
@@ -29,7 +29,7 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: strpbrk.3,v 1.6 2003/06/02 20:18:38 millert Exp $ 32.\" $OpenBSD: strpbrk.3,v 1.7 2005/02/25 03:12:44 cloder Exp $
33.\" 33.\"
34.Dd June 29, 1991 34.Dd June 29, 1991
35.Dt STRPBRK 3 35.Dt STRPBRK 3
@@ -44,7 +44,7 @@
44.Sh DESCRIPTION 44.Sh DESCRIPTION
45The 45The
46.Fn strpbrk 46.Fn strpbrk
47function locates in the null-terminated string 47function locates in the NUL-terminated string
48.Fa s 48.Fa s
49the first occurrence of any character in the string 49the first occurrence of any character in the string
50.Fa charset 50.Fa charset
diff --git a/src/lib/libc/string/strspn.3 b/src/lib/libc/string/strspn.3
index 54077b810c..5dc7e9746a 100644
--- a/src/lib/libc/string/strspn.3
+++ b/src/lib/libc/string/strspn.3
@@ -29,7 +29,7 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: strspn.3,v 1.7 2003/06/02 20:18:38 millert Exp $ 32.\" $OpenBSD: strspn.3,v 1.8 2005/02/25 03:12:44 cloder Exp $
33.\" 33.\"
34.Dd June 29, 1991 34.Dd June 29, 1991
35.Dt STRSPN 3 35.Dt STRSPN 3
@@ -44,7 +44,7 @@
44.Sh DESCRIPTION 44.Sh DESCRIPTION
45The 45The
46.Fn strspn 46.Fn strspn
47function spans the initial part of the null-terminated string 47function spans the initial part of the NUL-terminated string
48.Fa s 48.Fa s
49as long as the characters from 49as long as the characters from
50.Fa s 50.Fa s
diff --git a/src/lib/libc/string/strstr.3 b/src/lib/libc/string/strstr.3
index 47777dd89f..64396e7885 100644
--- a/src/lib/libc/string/strstr.3
+++ b/src/lib/libc/string/strstr.3
@@ -29,7 +29,7 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: strstr.3,v 1.6 2003/06/02 20:18:38 millert Exp $ 32.\" $OpenBSD: strstr.3,v 1.7 2005/02/25 03:12:44 cloder Exp $
33.\" 33.\"
34.Dd June 29, 1991 34.Dd June 29, 1991
35.Dt STRSTR 3 35.Dt STRSTR 3
@@ -44,9 +44,9 @@
44.Sh DESCRIPTION 44.Sh DESCRIPTION
45The 45The
46.Fn strstr 46.Fn strstr
47function locates the first occurrence of the null-terminated string 47function locates the first occurrence of the NUL-terminated string
48.Fa little 48.Fa little
49in the null-terminated string 49in the NUL-terminated string
50.Fa big . 50.Fa big .
51If 51If
52.Fa little 52.Fa little
diff --git a/src/lib/libc/string/strtok.3 b/src/lib/libc/string/strtok.3
index 29eea4847e..03a93980ab 100644
--- a/src/lib/libc/string/strtok.3
+++ b/src/lib/libc/string/strtok.3
@@ -29,7 +29,7 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: strtok.3,v 1.17 2004/01/20 06:06:48 millert Exp $ 32.\" $OpenBSD: strtok.3,v 1.18 2005/02/25 03:12:44 cloder Exp $
33.\" 33.\"
34.Dd June 29, 1991 34.Dd June 29, 1991
35.Dt STRTOK 3 35.Dt STRTOK 3
@@ -52,7 +52,7 @@ This interface is obsoleted by
52.Pp 52.Pp
53The 53The
54.Fn strtok 54.Fn strtok
55function is used to isolate sequential tokens in a null-terminated string, 55function is used to isolate sequential tokens in a NUL-terminated string,
56.Fa str . 56.Fa str .
57These tokens are separated in the string by at least one of the 57These tokens are separated in the string by at least one of the
58characters in 58characters in