sandbox/misc/kf/kf.cc

26 lines
282 B
C++
Raw Permalink Normal View History

#include "io.h"
2018-02-21 20:25:03 +00:00
#ifdef __linux__
#include "linux.h"
#endif // __linux__
2018-02-21 20:25:03 +00:00
static void
repl(IO &interface)
{
static char lbuf[81];
while (true) {
interface.rdln(lbuf, 80);
}
return;
}
int
main(void)
{
2018-02-21 20:25:03 +00:00
#ifdef __linux__
Console interface;
#endif
repl(interface);
return 0;
}