Antonio Nino Diaz | 1b465f8 | 2018-08-13 19:51:26 +0100 | [diff] [blame] | 1 | /* |
Govindraj Raja | eee28e7 | 2023-08-01 15:52:40 -0500 | [diff] [blame] | 2 | * Copyright (c) 2018, Arm Limited and Contributors. All rights reserved. |
Antonio Nino Diaz | 1b465f8 | 2018-08-13 19:51:26 +0100 | [diff] [blame] | 3 | * |
4 | * SPDX-License-Identifier: BSD-3-Clause | ||||
5 | */ | ||||
6 | |||||
7 | #include <string.h> | ||||
8 | |||||
9 | size_t strlen(const char *s) | ||||
10 | { | ||||
11 | const char *cursor = s; | ||||
12 | |||||
13 | while (*cursor) | ||||
14 | cursor++; | ||||
15 | |||||
16 | return cursor - s; | ||||
17 | } |