Restore the "GPL licensing not permitted" in GLUT license headers.
[haiku.git] / headers / posix / strings.h
bloba267758356318dcb28b39d44d81085659c37ba67
1 /*
2 * Copyright 2014 Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _STRINGS_H_
6 #define _STRINGS_H_
9 #include <sys/types.h>
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
16 extern int ffs(int i);
18 extern int strcasecmp(const char *string1, const char *string2);
19 extern int strncasecmp(const char *string1, const char *string2,
20 size_t length);
22 /* legacy compatibility -- might be removed one day */
23 #define bcmp(a, b, length) memcmp((a), (b), (length))
24 #define bcopy(source, dest, length) memmove((dest), (source), (length))
25 #define bzero(buffer, length) memset((buffer), 0, (length))
27 extern char *index(const char *s, int c);
28 extern char *rindex(char const *s, int c);
30 #ifdef __cplusplus
32 #endif
34 #endif /* _STRINGS_H_ */