X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/734aad71947a79037af64f74c683f5eb36fe6065..2650fa9ee9806a25904566dea091b1225d74f063:/include/strings.h diff --git a/include/strings.h b/include/strings.h index 03cdafe..0c59530 100644 --- a/include/strings.h +++ b/include/strings.h @@ -1,10 +1,8 @@ /* - * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. + * Copyright (c) 2000, 2007, 2010 Apple Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * - * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved. - * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in @@ -57,4 +55,42 @@ * @(#)strings.h 8.1 (Berkeley) 6/2/93 */ +#ifndef _STRINGS_H_ +#define _STRINGS_H_ + +#include <_types.h> + +#include +#include +#include + +__BEGIN_DECLS +/* Removed in Issue 7 */ +#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 200809L +int bcmp(const void *, const void *, size_t) __POSIX_C_DEPRECATED(200112L); +void bcopy(const void *, void *, size_t) __POSIX_C_DEPRECATED(200112L); +void bzero(void *, size_t) __POSIX_C_DEPRECATED(200112L); +char *index(const char *, int) __POSIX_C_DEPRECATED(200112L); +char *rindex(const char *, int) __POSIX_C_DEPRECATED(200112L); +#endif + +int ffs(int); +int strcasecmp(const char *, const char *); +int strncasecmp(const char *, const char *, size_t); +__END_DECLS + +/* Darwin extensions */ +#if __DARWIN_C_LEVEL >= __DARWIN_C_FULL +__BEGIN_DECLS +int ffsl(long) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0); +int ffsll(long long) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0); +int fls(int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0); +int flsl(long) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0); +int flsll(long long) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0); +__END_DECLS + #include +#endif + +#endif /* _STRINGS_H_ */ +