X-Git-Url: https://git.saurik.com/apple/bootx.git/blobdiff_plain/366defd12be2eb202aa24e420675ae85aae1d5d0..HEAD:/bootx.tproj/ci.subproj/ci_io.c diff --git a/bootx.tproj/ci.subproj/ci_io.c b/bootx.tproj/ci.subproj/ci_io.c index 2b75b2c..39ff1c7 100644 --- a/bootx.tproj/ci.subproj/ci_io.c +++ b/bootx.tproj/ci.subproj/ci_io.c @@ -31,8 +31,20 @@ #include #include -void putchar(int ch) +int putchar(int ch) { if ((ch == '\r') || (ch == '\n')) CallMethod(0, 0, SLWordsIH, "slw_cr"); else CallMethod(1, 0, SLWordsIH, "slw_emit", ch); + + return ch; +} + +int puts(const char *str) +{ + while (*str != '\0') + putchar(*str++); + + putchar('\n'); + + return 0; }