zephyr/lib/libc/armstdc/include/string.h
Kumar Gala af79019146 armstdc: add string.h & strings.h header
Add string.h header that declerates prototype for strnlen()
as this is not provided by the toolchain headers.

Add strings.h to allow anything that expects strncasecmp() to
be defined there to build correctly.  The arm toolchain actually
defines strncasecmp() in <string.h> so we just have <strings.h>
include <string.h>.

Signed-off-by: Kumar Gala <kumar.gala@intel.com>
2023-04-10 16:32:10 -05:00

26 lines
435 B
C

/*
* Copyright (c) 2023 Intel
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_LIB_LIBC_ARMSTDC_INCLUDE_STRING_H_
#define ZEPHYR_LIB_LIBC_ARMSTDC_INCLUDE_STRING_H_
#include <stddef.h>
#include <zephyr/toolchain.h>
#include_next <string.h>
#ifdef __cplusplus
extern "C" {
#endif
extern size_t strnlen(const char *s, size_t maxlen);
#ifdef __cplusplus
}
#endif
#endif /* ZEPHYR_LIB_LIBC_ARMSTDC_INCLUDE_STRING_H_ */