blob: e4b79d9f6496c608b99b1a20988d3c1ee7aa78b2 [file] [log] [blame]
Imre Kisf55f2aa2024-05-28 15:55:19 +02001/*
2 * Copyright (c) 2018, Arm Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#include <string.h>
8
9size_t strlen(const char *s)
10{
11 const char *cursor = s;
12
13 while (*cursor)
14 cursor++;
15
16 return cursor - s;
17}