diff options
author | Ashkan Kiani <ashkan.k.kiani@gmail.com> | 2019-05-03 03:30:13 -0700 |
---|---|---|
committer | John Hawthorn <john@hawthorn.email> | 2019-08-16 01:05:01 -0700 |
commit | c4524ae7aaa85f1569d6be1a8538b3650bc06f89 (patch) | |
tree | 326bc7c96be446cba02b99f7dad3e6b9e08aad39 /src/tty.c | |
parent | a318e00e30df4056c78ff4edf38376feb4d57dab (diff) |
Add ability to use null as input delimiter.
Update tty to print newline as space
Add tty_putc
Diffstat (limited to 'src/tty.c')
-rw-r--r-- | src/tty.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -184,6 +184,10 @@ void tty_printf(tty_t *tty, const char *fmt, ...) { va_end(args); } +void tty_putc(tty_t *tty, char c) { + fputc(c, tty->fout); +} + void tty_flush(tty_t *tty) { fflush(tty->fout); } |