diff options
| author | Ian Moffett <ian@osmora.org> | 2025-12-21 17:14:52 -0500 |
|---|---|---|
| committer | Ian Moffett <ian@osmora.org> | 2025-12-21 17:14:52 -0500 |
| commit | ea8882dd7c024db436e25e86ac3d3fa3b3e43aa0 (patch) | |
| tree | 1fbbecbc43c057f74c959e7e2a63ecb25a548951 /usr/sdk/inc | |
| parent | 580df110a231be68c64f5fe061e12fae9fbcc4cd (diff) | |
usr: sdk: Add initial string lib sources + strlen
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr/sdk/inc')
| -rw-r--r-- | usr/sdk/inc/sdk/string.h | 18 |
1 files changed, 18 insertions, 0 deletions
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 <sdk/types.h> + +/* + * Returns the length of a string + * + * @str: String to get length of + */ +USIZE strlen(const char *str); + +#endif /* !_SDK_STRING_H_ */ |
