Fix includes for string.h/string_utils.h

This commit is contained in:
vmttmv
2026-01-16 20:49:06 +02:00
parent c5f7e4e563
commit 19ef0a8627
2 changed files with 4 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
#include <string.h>
#include "display.h" #include "display.h"
#include "io.h" #include "io.h"
#include "vga.h" #include "vga.h"
@@ -62,7 +63,7 @@ void clear_display(void) {
// Helper function to write a string // Helper function to write a string
void display_write_string(const char* str) { void display_write_string(const char* str) {
// Use the VGA driver's string writing function // Use the VGA driver's string writing function
vga_write_string(str, my_strlen(str)); vga_write_string(str, strlen(str));
} }
// Helper function to print a formatted string // Helper function to print a formatted string

View File

@@ -1,9 +1,9 @@
#include "vga.h"
#include <stddef.h> #include <stddef.h>
#include <stdbool.h> #include <stdbool.h>
#include <string.h> #include <string.h>
#include <stdarg.h> #include <stdarg.h>
#include "klibc/include/string.h" #include "string_utils.h"
#include "vga.h"
void outb(uint16_t port, uint8_t value) { void outb(uint16_t port, uint8_t value) {
__asm__ volatile("outb %0, %1" : : "a"(value), "Nd"(port)); __asm__ volatile("outb %0, %1" : : "a"(value), "Nd"(port));