Anton Komlev | c88e2ac | 2024-09-12 16:46:39 +0100 | [diff] [blame^] | 1 | /* |
2 | * SPDX-License-Identifier: BSD-3-Clause | ||||
3 | * SPDX-FileCopyrightText: Copyright The TrustedFirmware-M Contributors | ||||
4 | * | ||||
5 | */ | ||||
6 | |||||
7 | #include <stddef.h> | ||||
8 | |||||
9 | size_t strlen(const char *s) | ||||
10 | { | ||||
11 | size_t idx = 0; | ||||
12 | |||||
13 | while (s[idx] != '\0') { | ||||
14 | idx++; | ||||
15 | } | ||||
16 | return idx; | ||||
17 | } |