strings.h revision 184587
1285612Sdelphij/*-
2181834Sroberto * Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
3285612Sdelphij * All rights reserved.
4330567Sgordon *
5181834Sroberto * Redistribution and use in source and binary forms, with or without
6181834Sroberto * modification, are permitted provided that the following conditions
7181834Sroberto * are met:
8285612Sdelphij * 1. Redistributions of source code must retain the above copyright
9181834Sroberto *    notice, this list of conditions and the following disclaimer.
10285612Sdelphij * 2. Redistributions in binary form must reproduce the above copyright
11285612Sdelphij *    notice, this list of conditions and the following disclaimer in the
12285612Sdelphij *    documentation and/or other materials provided with the distribution.
13285612Sdelphij *
14285612Sdelphij * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15285612Sdelphij * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16285612Sdelphij * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17181834Sroberto * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18285612Sdelphij * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19285612Sdelphij * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20181834Sroberto * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21316722Sdelphij * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22285612Sdelphij * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23285612Sdelphij * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24285612Sdelphij * SUCH DAMAGE.
25285612Sdelphij *
26285612Sdelphij * $FreeBSD: head/include/strings.h 184587 2008-11-03 10:22:19Z kib $
27285612Sdelphij */
28285612Sdelphij
29285612Sdelphij#ifndef _STRINGS_H_
30285612Sdelphij#define	_STRINGS_H_
31285612Sdelphij
32285612Sdelphij#include <sys/cdefs.h>
33285612Sdelphij#include <sys/_types.h>
34285612Sdelphij
35285612Sdelphij#ifndef _SIZE_T_DECLARED
36285612Sdelphijtypedef	__size_t	size_t;
37181834Sroberto#define	_SIZE_T_DECLARED
38181834Sroberto#endif
39285612Sdelphij
40285612Sdelphij__BEGIN_DECLS
41285612Sdelphijint	 bcmp(const void *, const void *, size_t) __pure;	/* LEGACY */
42285612Sdelphijvoid	 bcopy(const void *, void *, size_t);			/* LEGACY */
43181834Srobertovoid	 bzero(void *, size_t);					/* LEGACY */
44181834Srobertoint	 ffs(int) __pure2;
45285612Sdelphij#ifdef __BSD_VISIBLE
46285612Sdelphijint	 ffsl(long) __pure2;
47181834Srobertoint	 ffsll(long long) __pure2;
48181834Srobertoint	 fls(int) __pure2;
49181834Srobertoint	 flsl(long) __pure2;
50181834Srobertoint	 flsll(long long) __pure2;
51285612Sdelphij#endif
52285612Sdelphijchar	*index(const char *, int) __pure;			/* LEGACY */
53316722Sdelphijchar	*rindex(const char *, int) __pure;			/* LEGACY */
54181834Srobertoint	 strcasecmp(const char *, const char *) __pure;
55181834Srobertoint	 strncasecmp(const char *, const char *, size_t) __pure;
56181834Sroberto__END_DECLS
57181834Sroberto
58181834Sroberto#endif /* _STRINGS_H_ */
59181834Sroberto