strings.h revision 1.4
11.3Scgd/* $NetBSD: strings.h,v 1.4 1998/02/02 15:59:13 kleink 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.4Skleink 441.4Skleink#ifdef _BSD_SIZE_T_ 451.4Skleinktypedef _BSD_SIZE_T_ size_t; 461.4Skleink#undef _BSD_SIZE_T_ 471.4Skleink#endif 481.4Skleink 491.4Skleink#ifndef NULL 501.4Skleink#define NULL 0 511.4Skleink#endif 521.4Skleink 531.4Skleink#include <sys/cdefs.h> 541.4Skleink 551.4Skleink__BEGIN_DECLS 561.4Skleinkint bcmp __P((const void *, const void *, size_t)); 571.4Skleinkvoid bcopy __P((const void *, void *, size_t)); 581.4Skleinkvoid bzero __P((void *, size_t)); 591.4Skleinkint ffs __P((int)); 601.4Skleinkchar *index __P((const char *, int)); 611.4Skleinkchar *rindex __P((const char *, int)); 621.4Skleinkint strcasecmp __P((const char *, const char *)); 631.4Skleinkint strncasecmp __P((const char *, const char *, size_t)); 641.4Skleink__END_DECLS 651.4Skleink 661.4Skleink#endif /* !defined(_STRINGS_H_) */ 67