diff options
Diffstat (limited to 'src/lib/libc/include/string.h')
-rw-r--r-- | src/lib/libc/include/string.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/libc/include/string.h b/src/lib/libc/include/string.h index bce2950..3923a3b 100644 --- a/src/lib/libc/include/string.h +++ b/src/lib/libc/include/string.h @@ -80,4 +80,16 @@ void *memcpy(void *dest, const void *src, size_t n); */ void *memset(void *s, int c, size_t n); +/* + * Convert an integer base to string form + * + * @value: Value to convert to string + * @buf: Buffer to use + * @base: Radix to use + * + * Returns 'buf' on success, otherwise a value of + * NULL on failure. + */ +char *itoa(int64_t value, char *buf, int base); + #endif /* _STRING_H */ |