From c0ac35a7180d17494fb74c54877a88871c24a428 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 21 Dec 2025 19:10:36 -0500 Subject: usr: sdk: Add itoa() function Signed-off-by: Ian Moffett --- usr/sdk/inc/sdk/string.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'usr/sdk/inc') 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_ */ -- cgit v1.2.3