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