1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#include <stddef.h> #include <com32.h> #include <core.h> #include <stdio.h> #include <string.h> void myputchar(int c) { if (c == '\n') myputchar('\r'); writechr(c); } void myputs(const char *str) { while (*str) myputchar(*str++); }