xiaohu.huang | 9169c49 | 2022-11-18 16:30:06 +0800 | [diff] [blame] | 1 | /* |
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 | ||||
11 | extern "C" { | ||||
12 | #endif | ||||
13 | |||||
14 | #if (1 == CONFIG_ARM64) | ||||
15 | #include <sys/types.h> | ||||
16 | |||||
17 | size_t strnlen(const char *s, size_t maxlen); | ||||
18 | #else | ||||
19 | int strnlen(const char *s, int maxlen); | ||||
20 | #endif | ||||
21 | |||||
22 | #ifdef __cplusplus | ||||
23 | } | ||||
24 | #endif | ||||
25 | |||||
26 | #endif |