13 lines
250 B
C
13 lines
250 B
C
#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;
|
|
}
|