am-kernels/kernels/hello/hello.c

14 lines
250 B
C
Raw Permalink Normal View History

2020-08-12 05:35:19 +00:00
#include <am.h>
#include <klib-macros.h>
int main(const char *args) {
const char *fmt =
"Hello, AbstractMachine!\n"
"mainargs = '%'.\n";
for (const char *p = fmt; *p; p++) {
(*p == '%') ? putstr(args) : putch(*p);
}
return 0;
}