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