Update vga.c

Change my_strlen to use our klibc strlen in klibc/include/string.h
This commit is contained in:
2026-01-16 01:19:01 -08:00
committed by GitHub
parent f516334e0d
commit c5f7e4e563

View File

@@ -3,7 +3,7 @@
#include <stdbool.h>
#include <string.h>
#include <stdarg.h>
#include "string_utils.h"
#include "klibc/include/string.h"
void outb(uint16_t port, uint8_t value) {
__asm__ volatile("outb %0, %1" : : "a"(value), "Nd"(port));
@@ -134,7 +134,7 @@ void vga_printf(const char* format, ...) {
va_end(args);
// Now you can use the buffer with vga_write_string
vga_write_string(buffer, my_strlen(buffer)); // Use my_strlen instead of strlen
vga_write_string(buffer, strlen(buffer)); // Use my_strlen instead of strlen
}
void vga_init(void) {