posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
Loading...
Searching...
No Matches
strings.h
Go to the documentation of this file.
1/*
2 * Copyright The Zephyr Project Contributors
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
17#ifndef ZEPHYR_INCLUDE_POSIX_STRINGS_H_
18#define ZEPHYR_INCLUDE_POSIX_STRINGS_H_
19
20#if defined(_POSIX_C_SOURCE) || defined(__DOXYGEN__)
21
22#include <stddef.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
37int strcasecmp(const char *s1, const char *s2);
38
50int strncasecmp(const char *s1, const char *s2, size_t n);
51
52#ifdef __cplusplus
53}
54#endif
55
56#endif /* defined(_POSIX_C_SOURCE) || defined(__DOXYGEN__) */
57
58#endif /* ZEPHYR_INCLUDE_POSIX_STRINGS_H_ */
int strncasecmp(const char *s1, const char *s2, size_t n)
Compare two strings, ignoring case, up to a maximum length.
int strcasecmp(const char *s1, const char *s2)
Compare two strings, ignoring case.