diff options
Diffstat (limited to 'dos/conio.c')
-rw-r--r-- | dos/conio.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/dos/conio.c b/dos/conio.c index bf54805a..1400e42c 100644 --- a/dos/conio.c +++ b/dos/conio.c @@ -21,22 +21,22 @@ int putchar(int ch) { - if ( ch == '\n' ) - putchar('\r'); - asm("movb $0x02,%%ah ; int $0x21" : : "d" (ch)); - return ch; + if (ch == '\n') + putchar('\r'); +asm("movb $0x02,%%ah ; int $0x21": :"d"(ch)); + return ch; } /* Note: doesn't put '\n' like the stdc version does */ int puts(const char *s) { - int count = 0; + int count = 0; - while ( *s ) { - putchar(*s); - count++; - s++; - } + while (*s) { + putchar(*s); + count++; + s++; + } - return count; + return count; } |