strings.h revision 93747
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 93747 2002-04-04 05:41:57Z mike $ 271539Srgrimes */ 281539Srgrimes 2993747Smike#ifndef _STRINGS_H_ 3093747Smike#define _STRINGS_H_ 3193747Smike 3293747Smike#include <sys/cdefs.h> 3393747Smike#include <machine/ansi.h> 3493747Smike 3593747Smike#ifdef _BSD_SIZE_T_ 3693747Smiketypedef _BSD_SIZE_T_ size_t; 3793747Smike#undef _BSD_SIZE_T_ 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