TODO & String library

pull/29/head
E. Almqvist 3 years ago
parent b671216aa9
commit ce864a724e
  1. 7
      TODO.md
  2. 4
      kernel/kernel.c
  3. 3
      lib/str.c

@ -1,5 +1,10 @@
# TO DO
- String formating
- Malloc
- String Library
- Concat
- Format
- Scrolling
- Multiboot support (for grub etc)
- Rendering (VGA)

@ -6,8 +6,8 @@ void main() {
vga_init(); // Initialize the screen first
// i.e. clear the screen et cetera.
char* strbuf = "HEJ";
char* str2 = "xD";
char* strbuf = "Hello";
char* str2 = "World!";
strbuf = strcat(strbuf, str2);
println(strbuf, 0xf0);

@ -12,7 +12,8 @@ char* strcat(char* buf, char* str) {
unsigned int bufferlen = strlen(buf);
// remove the 0x0 char from the buffer
*(buf + bufferlen) = 0x3f; // placeholder
*(buf + bufferlen) = 0x3f; // replace end-of-string
// with a placeholder
// concat the str to buf
int cc = 0;

Loading…
Cancel
Save