22#ifndef LELY_LIBC_STRINGS_H_
23#define LELY_LIBC_STRINGS_H_
27#ifndef LELY_HAVE_STRINGS_H
28#if (_POSIX_C_SOURCE >= 200112L || defined(__NEWLIB__))
29#define LELY_HAVE_STRINGS_H 1
33#if LELY_HAVE_STRINGS_H
39#ifndef LELY_LIBC_STRINGS_INLINE
40#define LELY_LIBC_STRINGS_INLINE static inline
53#if (defined(__GNUC__) || __has_builtin(__builtin_ffs)) \
54 && !defined(__BSD_VISIBLE)
55LELY_LIBC_STRINGS_INLINE
int ffs(
int i);
60 return __builtin_ffs(i);
82int strncasecmp(
const char *s1,
const char *s2,
size_t n);
This header file is part of the Lely libraries; it contains the compiler feature definitions.
This header file is part of the C11 and POSIX compatibility library; it includes <stddef....
This header file is part of the C11 and POSIX compatibility library; it includes <strings....
int ffs(int i)
Finds the index of the first (least significant) bit set in i.
int strncasecmp(const char *s1, const char *s2, size_t n)
Compares at most n characters from the the string at s1 to the string at s2, ignoring differences in ...
int strcasecmp(const char *s1, const char *s2)
Compares the string at s1 to the string at s2, ignoring differences in case.