aboutsummaryrefslogtreecommitdiff
path: root/lib/libk/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libk/string.h')
-rw-r--r--lib/libk/string.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/libk/string.h b/lib/libk/string.h
new file mode 100644
index 0000000..c8196c8
--- /dev/null
+++ b/lib/libk/string.h
@@ -0,0 +1,28 @@
+#pragma once
+
+///@defgroup libk libk
+///@{
+///@defgroup string string
+///@{
+
+#define OCTAL 8
+#define DECIMAL 10
+#define HEX 16
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+/**
+ * Convert int into a string
+ */
+char *itoa(char *p, int x, int base);
+/**
+ * Convert unsigned int into a string
+ */
+char *utoa(char *p, unsigned x, int base);
+#ifdef __cplusplus
+}
+#endif
+
+///@}
+///@}