xref: /minix3/lib/libc/string/strings.3 (revision 2fe8fb192fe7e8720e3e7a77f928da545e872a6a)
1*2fe8fb19SBen Gras.\" $NetBSD: strings.3,v 1.1 2007/02/17 09:32:58 wiz Exp $
2*2fe8fb19SBen Gras.\"
3*2fe8fb19SBen Gras.\" Copyright (c) 2007 The NetBSD Foundation, Inc.
4*2fe8fb19SBen Gras.\" All rights reserved.
5*2fe8fb19SBen Gras.\"
6*2fe8fb19SBen Gras.\" This code is derived from software contributed to The NetBSD Foundation
7*2fe8fb19SBen Gras.\" by Thomas Klausner.
8*2fe8fb19SBen Gras.\"
9*2fe8fb19SBen Gras.\" Redistribution and use in source and binary forms, with or without
10*2fe8fb19SBen Gras.\" modification, are permitted provided that the following conditions
11*2fe8fb19SBen Gras.\" are met:
12*2fe8fb19SBen Gras.\" 1. Redistributions of source code must retain the above copyright
13*2fe8fb19SBen Gras.\"    notice, this list of conditions and the following disclaimer.
14*2fe8fb19SBen Gras.\" 2. Redistributions in binary form must reproduce the above copyright
15*2fe8fb19SBen Gras.\"    notice, this list of conditions and the following disclaimer in the
16*2fe8fb19SBen Gras.\"    documentation and/or other materials provided with the distribution.
17*2fe8fb19SBen Gras.\"
18*2fe8fb19SBen Gras.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19*2fe8fb19SBen Gras.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20*2fe8fb19SBen Gras.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21*2fe8fb19SBen Gras.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22*2fe8fb19SBen Gras.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23*2fe8fb19SBen Gras.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24*2fe8fb19SBen Gras.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25*2fe8fb19SBen Gras.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26*2fe8fb19SBen Gras.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27*2fe8fb19SBen Gras.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28*2fe8fb19SBen Gras.\" POSSIBILITY OF SUCH DAMAGE.
29*2fe8fb19SBen Gras.\"
30*2fe8fb19SBen Gras.Dd February 17, 2007
31*2fe8fb19SBen Gras.Dt STRINGS 3
32*2fe8fb19SBen Gras.Os
33*2fe8fb19SBen Gras.Sh NAME
34*2fe8fb19SBen Gras.Nm bcmp ,
35*2fe8fb19SBen Gras.Nm bcopy ,
36*2fe8fb19SBen Gras.Nm bzero ,
37*2fe8fb19SBen Gras.Nm ffs ,
38*2fe8fb19SBen Gras.Nm index ,
39*2fe8fb19SBen Gras.Nm rindex ,
40*2fe8fb19SBen Gras.Nm strcasecmp ,
41*2fe8fb19SBen Gras.Nm strncasecmp
42*2fe8fb19SBen Gras.Nd string operations
43*2fe8fb19SBen Gras.Sh LIBRARY
44*2fe8fb19SBen Gras.Lb libc
45*2fe8fb19SBen Gras.Sh SYNOPSIS
46*2fe8fb19SBen Gras.In strings.h
47*2fe8fb19SBen Gras.Ft int
48*2fe8fb19SBen Gras.Fn bcmp "const void *b1" "const void *b2" "size_t len"
49*2fe8fb19SBen Gras.Ft void
50*2fe8fb19SBen Gras.Fn bcopy "const void *src" "void *dst" "size_t len"
51*2fe8fb19SBen Gras.Ft void
52*2fe8fb19SBen Gras.Fn bzero "void *b" "size_t len"
53*2fe8fb19SBen Gras.Ft int
54*2fe8fb19SBen Gras.Fn ffs "int value"
55*2fe8fb19SBen Gras.Ft char *
56*2fe8fb19SBen Gras.Fn index "const char *s" "int c"
57*2fe8fb19SBen Gras.Ft char *
58*2fe8fb19SBen Gras.Fn rindex "const char *s" "int c"
59*2fe8fb19SBen Gras.Ft int
60*2fe8fb19SBen Gras.Fn strcasecmp "const char *s1" "const char *s2"
61*2fe8fb19SBen Gras.Ft int
62*2fe8fb19SBen Gras.Fn strncasecmp "const char *s1" "const char *s2" "size_t len"
63*2fe8fb19SBen Gras.Sh DESCRIPTION
64*2fe8fb19SBen GrasThese functions all live in the
65*2fe8fb19SBen Gras.Pa strings.h
66*2fe8fb19SBen Grasheader file.
67*2fe8fb19SBen GrasExcept for
68*2fe8fb19SBen Gras.Fn ffs ,
69*2fe8fb19SBen Grasthey operate on strings.
70*2fe8fb19SBen Gras.Fn index ,
71*2fe8fb19SBen Gras.Fn rindex ,
72*2fe8fb19SBen Grasand
73*2fe8fb19SBen Gras.Fn strcasecmp
74*2fe8fb19SBen Grasneed nul-terminated strings.
75*2fe8fb19SBen Gras.Pp
76*2fe8fb19SBen GrasSee the specific manual pages for more information.
77*2fe8fb19SBen Gras.Pp
78*2fe8fb19SBen GrasSee
79*2fe8fb19SBen Gras.Xr string 3
80*2fe8fb19SBen Grasfor string functions that follow
81*2fe8fb19SBen Gras.St -ansiC
82*2fe8fb19SBen Grasor
83*2fe8fb19SBen Gras.St -isoC-99 ,
84*2fe8fb19SBen Gras.Xr bstring 3
85*2fe8fb19SBen Grasfor functions that operate on strings that are not nul-terminated, and
86*2fe8fb19SBen Gras.Xr bitstring 3
87*2fe8fb19SBen Grasfor bit-string manipulation macros.
88*2fe8fb19SBen Gras.Sh SEE ALSO
89*2fe8fb19SBen Gras.Xr bcmp 3 ,
90*2fe8fb19SBen Gras.Xr bcopy 3 ,
91*2fe8fb19SBen Gras.Xr bitstring 3 ,
92*2fe8fb19SBen Gras.Xr bstring 3 ,
93*2fe8fb19SBen Gras.Xr bzero 3 ,
94*2fe8fb19SBen Gras.Xr ffs 3 ,
95*2fe8fb19SBen Gras.Xr index 3 ,
96*2fe8fb19SBen Gras.Xr rindex 3 ,
97*2fe8fb19SBen Gras.Xr strcasecmp 3 ,
98*2fe8fb19SBen Gras.Xr string 3
99