blob: 51218edea3818f17c2308b7af6378aea6bf9262a [file] [log] [blame]
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/common.h"
size_t strlen(const char *s) {
const char *start = s;
while (*s) {
s++;
}
return s - start;
}