blob: 6ffdd7f4bbcf3422d746cdaebc2da973ed5be546 [file] [log] [blame]
xiaohu.huang9169c492022-11-18 16:30:06 +08001/*
2 * Copyright (c) 2021-2022 Amlogic, Inc. All rights reserved.
3 *
4 * SPDX-License-Identifier: MIT
5 */
6
7#ifndef __AML_STRNLEN_H__
8#define __AML_STRNLEN_H__
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14#if (1 == CONFIG_ARM64)
15#include <sys/types.h>
16
17size_t strnlen(const char *s, size_t maxlen);
18#else
19int strnlen(const char *s, int maxlen);
20#endif
21
22#ifdef __cplusplus
23}
24#endif
25
26#endif