aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/syscall/actions/sys_write.c
blob: f747be80ac14b2a3d77db6328954a05b4e86ea7e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdint.h>
#include <kernel/lib/stdio.h>
#include <kernel/lib/string.h>

uint32_t sys_write(char *buf)
{
    printf(buf);
    return strlen((const char *) buf);
}

uint32_t sys_writec(char ch)
{
    writec(ch);
    return 0;
}