strings.h revision 189350
1177633Sdfr/*-
2177633Sdfr * Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
3177633Sdfr * All rights reserved.
4177633Sdfr *
5177633Sdfr * Redistribution and use in source and binary forms, with or without
6177633Sdfr * modification, are permitted provided that the following conditions
7177633Sdfr * are met:
8177633Sdfr * 1. Redistributions of source code must retain the above copyright
9177633Sdfr *    notice, this list of conditions and the following disclaimer.
10177633Sdfr * 2. Redistributions in binary form must reproduce the above copyright
11177633Sdfr *    notice, this list of conditions and the following disclaimer in the
12177633Sdfr *    documentation and/or other materials provided with the distribution.
13177633Sdfr *
14177633Sdfr * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15177633Sdfr * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16177633Sdfr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17177633Sdfr * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18177633Sdfr * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19177633Sdfr * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20177633Sdfr * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21177633Sdfr * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22177633Sdfr * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23177633Sdfr * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24177633Sdfr * SUCH DAMAGE.
25177633Sdfr *
26177633Sdfr * $FreeBSD: head/include/strings.h 189350 2009-03-04 03:31:51Z das $
27177633Sdfr */
28177633Sdfr
29177633Sdfr#ifndef _STRINGS_H_
30177633Sdfr#define	_STRINGS_H_
31177633Sdfr
32177633Sdfr#include <sys/cdefs.h>
33177633Sdfr#include <sys/_types.h>
34177633Sdfr
35177633Sdfr#ifndef _SIZE_T_DECLARED
36177633Sdfrtypedef	__size_t	size_t;
37177633Sdfr#define	_SIZE_T_DECLARED
38177633Sdfr#endif
39177633Sdfr
40177633Sdfr__BEGIN_DECLS
41177633Sdfr#if __BSD_VISIBLE || __POSIX_VISIBLE <= 200112
42177633Sdfrint	 bcmp(const void *, const void *, size_t) __pure;	/* LEGACY */
43177633Sdfrvoid	 bcopy(const void *, void *, size_t);			/* LEGACY */
44177633Sdfrvoid	 bzero(void *, size_t);					/* LEGACY */
45177633Sdfr#endif
46177633Sdfr#if __XSI_VISIBLE
47177633Sdfrint	 ffs(int) __pure2;
48177633Sdfr#endif
49177633Sdfr#ifdef __BSD_VISIBLE
50177633Sdfrint	 ffsl(long) __pure2;
51177633Sdfrint	 ffsll(long long) __pure2;
52177633Sdfrint	 fls(int) __pure2;
53177633Sdfrint	 flsl(long) __pure2;
54177633Sdfrint	 flsll(long long) __pure2;
55177633Sdfr#endif
56177633Sdfr#if __BSD_VISIBLE || __POSIX_VISIBLE <= 200112
57177633Sdfrchar	*index(const char *, int) __pure;			/* LEGACY */
58177633Sdfrchar	*rindex(const char *, int) __pure;			/* LEGACY */
59177633Sdfr#endif
60177633Sdfrint	 strcasecmp(const char *, const char *) __pure;
61177633Sdfrint	 strncasecmp(const char *, const char *, size_t) __pure;
62177633Sdfr__END_DECLS
63177633Sdfr
64177633Sdfr#endif /* _STRINGS_H_ */
65177633Sdfr