aboutsummaryrefslogtreecommitdiffstats
path: root/core/console.c
blob: 3b545bbd473dad0bc42f1d7ab8a1ddc611b32326 (plain)
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++);
}