strings.h revision 1.10
11.10Sperry/* $NetBSD: strings.h,v 1.10 2005/02/03 04:39:32 perry Exp $ */ 21.3Scgd 31.1Scgd/*- 41.4Skleink * Copyright (c) 1998 The NetBSD Foundation, Inc. 51.1Scgd * All rights reserved. 61.1Scgd * 71.4Skleink * This code is derived from software contributed to The NetBSD Foundation 81.4Skleink * by Klaus Klein. 91.4Skleink * 101.1Scgd * Redistribution and use in source and binary forms, with or without 111.1Scgd * modification, are permitted provided that the following conditions 121.1Scgd * are met: 131.1Scgd * 1. Redistributions of source code must retain the above copyright 141.1Scgd * notice, this list of conditions and the following disclaimer. 151.1Scgd * 2. Redistributions in binary form must reproduce the above copyright 161.1Scgd * notice, this list of conditions and the following disclaimer in the 171.1Scgd * documentation and/or other materials provided with the distribution. 181.1Scgd * 3. All advertising materials mentioning features or use of this software 191.1Scgd * must display the following acknowledgement: 201.4Skleink * This product includes software developed by the NetBSD 211.4Skleink * Foundation, Inc. and its contributors. 221.4Skleink * 4. Neither the name of The NetBSD Foundation nor the names of its 231.4Skleink * contributors may be used to endorse or promote products derived 241.4Skleink * from this software without specific prior written permission. 251.1Scgd * 261.4Skleink * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 271.4Skleink * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 281.4Skleink * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 291.4Skleink * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 301.4Skleink * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 311.4Skleink * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 321.4Skleink * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 331.4Skleink * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 341.4Skleink * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 351.4Skleink * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 361.4Skleink * POSSIBILITY OF SUCH DAMAGE. 371.1Scgd */ 381.1Scgd 391.4Skleink#ifndef _STRINGS_H_ 401.4Skleink#define _STRINGS_H_ 411.4Skleink 421.4Skleink#include <machine/ansi.h> 431.6Skleink#include <sys/featuretest.h> 441.4Skleink 451.4Skleink#ifdef _BSD_SIZE_T_ 461.4Skleinktypedef _BSD_SIZE_T_ size_t; 471.4Skleink#undef _BSD_SIZE_T_ 481.4Skleink#endif 491.4Skleink 501.9Sbjh21#if defined(_NETBSD_SOURCE) 511.8Skleink#include <sys/null.h> 521.4Skleink#endif 531.4Skleink 541.4Skleink#include <sys/cdefs.h> 551.4Skleink 561.4Skleink__BEGIN_DECLS 571.10Sperryint bcmp(const void *, const void *, size_t); 581.10Sperryvoid bcopy(const void *, void *, size_t); 591.10Sperryvoid bzero(void *, size_t); 601.10Sperryint ffs(int); 611.10Sperrychar *index(const char *, int); 621.10Sperrychar *rindex(const char *, int); 631.10Sperryint strcasecmp(const char *, const char *); 641.10Sperryint strncasecmp(const char *, const char *, size_t); 651.4Skleink__END_DECLS 661.5Skleink 671.9Sbjh21#if defined(_NETBSD_SOURCE) 681.5Skleink#include <string.h> 691.5Skleink#endif 701.4Skleink 711.4Skleink#endif /* !defined(_STRINGS_H_) */ 72