#include "framebuffer.h" int write(char *buf, unsigned int len) { int ret = 0; int pos = 0; fb_move_cursor(ret); while (ret < len) { fb_write_cell(pos, *(buf + ret), FB_WHITE, FB_BLACK); ret++; fb_move_cursor(ret); pos += 2; } return ret; } int strlen(char *buf) { int ret = 0; while (*(buf + ret) != '\0') ret++; return ret; } void kmain(void) { char *str = "pouet pouet"; int len = strlen(str); write(str, len); }