diff options
| author | Ian Moffett <ian@osmora.org> | 2025-12-21 19:10:36 -0500 |
|---|---|---|
| committer | Ian Moffett <ian@osmora.org> | 2025-12-21 19:13:22 -0500 |
| commit | c0ac35a7180d17494fb74c54877a88871c24a428 (patch) | |
| tree | f9013074aab2b72e42ba9448a2b8d27bee301305 /usr/sdk/inc | |
| parent | 3d2a2a58c11fa6b7653a0f77de9aa1f7cdb1921a (diff) | |
usr: sdk: Add itoa() function
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr/sdk/inc')
| -rw-r--r-- | usr/sdk/inc/sdk/string.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/usr/sdk/inc/sdk/string.h b/usr/sdk/inc/sdk/string.h index 36261d0..0f7ff27 100644 --- a/usr/sdk/inc/sdk/string.h +++ b/usr/sdk/inc/sdk/string.h @@ -27,4 +27,16 @@ USIZE strlen(const char *str); */ void *memcpy(void *dest, const void *src, USIZE count); +/* + * Convert a given value into a string based on a + * specific radix/base + * + * @value: Value to convert + * @buf: Buffer to copy to + * @base: Radix + * + * Returns `buf' on success + */ +char *itoa(QUAD value, char *buf, int base); + #endif /* !_SDK_STRING_H_ */ |
