Luna/kernel/src/arch/Serial.cpp
apio 30ac95bcf8 Use usize/isize instead of (s)size_t
Since we're using Rust-style integer types already, why not go all in?
2022-11-16 20:30:34 +01:00

20 lines
315 B
C++

#include "arch/Serial.h"
namespace Serial
{
void write(const char* str, usize size)
{
while (size--) putchar(*str++);
}
void print(const char* str)
{
while (*str) putchar(*str++);
}
void println(const char* str)
{
print(str);
putchar('\n');
}
}