aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/syscall/actions/sys_write.c
blob: f15004f2153277e38221ebf2e69c04476ccc003b (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;
}