From ea8882dd7c024db436e25e86ac3d3fa3b3e43aa0 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 21 Dec 2025 17:14:52 -0500 Subject: usr: sdk: Add initial string lib sources + strlen Signed-off-by: Ian Moffett --- usr/sdk/inc/sdk/string.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 usr/sdk/inc/sdk/string.h (limited to 'usr/sdk/inc') diff --git a/usr/sdk/inc/sdk/string.h b/usr/sdk/inc/sdk/string.h new file mode 100644 index 0000000..f7668fd --- /dev/null +++ b/usr/sdk/inc/sdk/string.h @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2025, Ian Moffett. + * Provided under the BSD-3 clause. + */ + +#ifndef _SDK_STRING_H_ +#define _SDK_STRING_H_ 1 + + #include + +/* + * Returns the length of a string + * + * @str: String to get length of + */ +USIZE strlen(const char *str); + +#endif /* !_SDK_STRING_H_ */ -- cgit v1.2.3