strings.h revision 102227
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 102227 2002-08-21 16:20:02Z mike $ 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 4193747Smikeint bcmp(const void *, const void *, size_t); /* LEGACY */ 4293747Smikevoid bcopy(const void *, void *, size_t); /* LEGACY */ 4393747Smikevoid bzero(void *, size_t); /* LEGACY */ 4493747Smikeint ffs(int); 4593747Smikechar *index(const char *, int); /* LEGACY */ 4693747Smikechar *rindex(const char *, int); /* LEGACY */ 4793747Smikeint strcasecmp(const char *, const char *); 4893747Smikeint strncasecmp(const char *, const char *, size_t); 4993747Smike__END_DECLS 5093747Smike 5193747Smike#endif /* _STRINGS_H_ */ 52