aboutsummaryrefslogtreecommitdiff
path: root/lib/string.h
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2022-11-08 10:46:07 +0200
committeraqua <aqua@iserlohn-fortress.net>2022-11-08 14:56:42 +0200
commit527a5ea7a896a9b00e0563abbbed7771a398971b (patch)
tree81dcbe1b95c88bea447dfcc32d6fed46835713bb /lib/string.h
parentCapture ps2 mouse packets (diff)
downloadkernel-527a5ea7a896a9b00e0563abbbed7771a398971b.tar.xz
Add python-sphinx docs
Diffstat (limited to 'lib/string.h')
-rw-r--r--lib/string.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/string.h b/lib/string.h
index 9873362..1eb3da2 100644
--- a/lib/string.h
+++ b/lib/string.h
@@ -1,4 +1,14 @@
#pragma once
+#define OCTAL 8
+#define DECIMAL 10
+#define HEX 16
+
+/**
+ * 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);