Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame^] | 1 | /* |
2 | * SPDX-License-Identifier: BSD-3-Clause | ||||
3 | * SPDX-FileCopyrightText: Copyright TF-RMM Contributors. | ||||
4 | */ | ||||
5 | |||||
6 | #include <string.h> | ||||
7 | |||||
8 | size_t strlen(const char *s) | ||||
9 | { | ||||
10 | const char *cursor = s; | ||||
11 | |||||
12 | while (*cursor) { | ||||
13 | cursor++; | ||||
14 | } | ||||
15 | |||||
16 | return cursor - s; | ||||
17 | } |