strings.h revision 132577
11539Srgrimes/*- 293747Smike * Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org> 393747Smike * All rights reserved. 41539Srgrimes * 51539Srgrimes * Redistribution and use in source and binary forms, with or without 61539Srgrimes * modification, are permitted provided that the following conditions 71539Srgrimes * are met: 81539Srgrimes * 1. Redistributions of source code must retain the above copyright 91539Srgrimes * notice, this list of conditions and the following disclaimer. 101539Srgrimes * 2. Redistributions in binary form must reproduce the above copyright 111539Srgrimes * notice, this list of conditions and the following disclaimer in the 121539Srgrimes * documentation and/or other materials provided with the distribution. 131539Srgrimes * 1493747Smike * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 151539Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 161539Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1793747Smike * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 181539Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 191539Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 201539Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 211539Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 221539Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 231539Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 241539Srgrimes * SUCH DAMAGE. 251539Srgrimes * 2693747Smike * $FreeBSD: head/include/strings.h 132577 2004-07-23 07:13:35Z tjr $ 271539Srgrimes */ 281539Srgrimes 2993747Smike#ifndef _STRINGS_H_ 3093747Smike#define _STRINGS_H_ 3193747Smike 3293747Smike#include <sys/cdefs.h> 33102227Smike#include <sys/_types.h> 3493747Smike 35102227Smike#ifndef _SIZE_T_DECLARED 36102227Smiketypedef __size_t size_t; 37102227Smike#define _SIZE_T_DECLARED 3893747Smike#endif 3993747Smike 4093747Smike__BEGIN_DECLS 41132577Stjrint bcmp(const void *, const void *, size_t) __pure; /* LEGACY */ 42132577Stjrvoid bcopy(const void *, void *, size_t); /* LEGACY */ 43132577Stjrvoid bzero(void *, size_t); /* LEGACY */ 44132577Stjrint ffs(int) __pure2; 45131875Sdes#ifdef __BSD_VISIBLE 46132577Stjrint ffsl(long) __pure2; 47132577Stjrint fls(int) __pure2; 48132577Stjrint flsl(long) __pure2; 49131875Sdes#endif 50132577Stjrchar *index(const char *, int) __pure; /* LEGACY */ 51132577Stjrchar *rindex(const char *, int) __pure; /* LEGACY */ 52132577Stjrint strcasecmp(const char *, const char *) __pure; 53132577Stjrint strncasecmp(const char *, const char *, size_t) __pure; 5493747Smike__END_DECLS 5593747Smike 5693747Smike#endif /* _STRINGS_H_ */ 57