6.0s1/test.c

13 lines
250 B
C
Raw Normal View History

2024-06-07 06:27:27 +08:00
#include "6.0s1.h"
int main(void) {
2024-06-07 09:32:50 +08:00
s1_trace("Hello");
s1_int p = read_int();
2024-06-07 06:27:27 +08:00
write_int(p);
write_char('\n');
read_pnl();
2024-06-07 09:32:50 +08:00
s1_trace("Read until newline");
s1_char q = read_char();
2024-06-07 06:27:27 +08:00
write_char(q);
write_char('\n');
}