From 764f8d22b250e09c1dea98fb8073e71a720892f7 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Wed, 8 Feb 2023 21:39:42 +0100 Subject: add pager --- lib/io/io.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/io/io.c') diff --git a/lib/io/io.c b/lib/io/io.c index 7dee314..57cfd05 100644 --- a/lib/io/io.c +++ b/lib/io/io.c @@ -15,9 +15,9 @@ void wstd(const char *buf) } -void rstd(char *buf, unsigned long count) +unsigned long rstd(char *buf, unsigned long count) { - read(STDIN_FD, buf, count); + return read(STDIN_FD, buf, count); } @@ -26,6 +26,7 @@ void wf(unsigned int fd, char *buf) write(fd, buf, cstr_length(buf)); } + void wstdf__(const char *buf, const void **args) { wff__(STDOUT_FD, buf, args); -- cgit v1.2.3-70-g09d2