aboutsummaryrefslogtreecommitdiffstats
path: root/usr/chello.c
blob: f570b617e319eac8e8aa8418d7d4aa5a5d93fee5 (plain) (blame)
1
2
3
4
5
6
7
8
9
#include "gbos.h"
void main(void) {
    writes("hello from C on gbos!", 21);
    nl();
    writes("my pid is ", 10);
    /* print pid as a digit */
    { unsigned char c = getpid() + '0'; char d = c; writes(&d, 1); }
    nl();
}