summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon <sgkadesh@icloud.com>2024-01-27 18:36:44 -0500
committerSimon <sgkadesh@icloud.com>2024-01-27 18:36:44 -0500
commitcfdc91ad07cee684eb7eeeb7dcdcc993609dd040 (patch)
tree505b36f5afdeaf9c1e572e0224070f814c6c13e2 /include
parentDid some preliminary work on memory management (diff)
parentqemu fb (diff)
downloadcorn-cfdc91ad07cee684eb7eeeb7dcdcc993609dd040.tar.gz
corn-cfdc91ad07cee684eb7eeeb7dcdcc993609dd040.tar.bz2
corn-cfdc91ad07cee684eb7eeeb7dcdcc993609dd040.zip
Merge remote-tracking branch 'origin/main'
Diffstat (limited to 'include')
-rw-r--r--include/fb.h5
-rw-r--r--include/lib.h12
2 files changed, 17 insertions, 0 deletions
diff --git a/include/fb.h b/include/fb.h
new file mode 100644
index 0000000..2c5ea13
--- /dev/null
+++ b/include/fb.h
@@ -0,0 +1,5 @@
+#pragma once
+
+#include <stdint.h>
+
+int fb_init(uint16_t res_x, uint16_t res_y);
diff --git a/include/lib.h b/include/lib.h
index b368636..43b95a6 100644
--- a/include/lib.h
+++ b/include/lib.h
@@ -32,6 +32,18 @@ extern void *memset(void *restrict dest, int c, unsigned long n);
extern int strncmp(const char *restrict s1, const char *restrict s2, unsigned long n);
/**
+ * Copys the string pointed to by src , into a string at the buffer pointer to by dest.
+ * The dest buffer must be long enough to hold src.
+ */
+extern char *strcpy(char *restrict dest, const char *restrict src);
+
+/**
+ * Copys the string pointed to by src , into a string at the buffer pointer to by dest.
+ * The dest buffer must be long enough to hold src or size n.
+ */
+extern char *strncpy(char *restrict dest, const char *restrict src, unsigned long n);
+
+/**
* @returns 1 if c is a space
*/
extern int isspace(int c);