blob: cc1d1dfc759f23a5091221efbec58b1a6fc852f0 [file] [log] [blame]
Antonio Nino Diaz1b465f82018-08-13 19:51:26 +01001/*
Boyan Karatotev7ab30812025-03-17 10:31:03 +00002 * Copyright (c) 2018-2025, Arm Limited and Contributors. All rights reserved.
Antonio Nino Diaz1b465f82018-08-13 19:51:26 +01003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Boyan Karatotev7ab30812025-03-17 10:31:03 +00007#include <string_private.h>
Antonio Nino Diaz1b465f82018-08-13 19:51:26 +01008
9size_t strlen(const char *s)
10{
11 const char *cursor = s;
12
13 while (*cursor)
14 cursor++;
15
16 return cursor - s;
17}