From ce05175372a9ddca1a225db0765ace1127a39293 Mon Sep 17 00:00:00 2001 From: Nicholas Date: Fri, 12 Nov 2021 09:22:01 -0800 Subject: chore: simplified organizational structure --- sys/libfmt/vfprint.c | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 sys/libfmt/vfprint.c (limited to 'sys/libfmt/vfprint.c') diff --git a/sys/libfmt/vfprint.c b/sys/libfmt/vfprint.c deleted file mode 100644 index 4306ea7..0000000 --- a/sys/libfmt/vfprint.c +++ /dev/null @@ -1,19 +0,0 @@ -#include "internal.h" - -int -fmt·vfprint(int fd, char *fmt, va_list args) -{ - int n; - fmt·State io; - char buf[256]; - - fmt·open(fd, sizeof(buf), buf, &io); - - va_copy(io.args, args); - n = fmt·do(&io, fmt); - va_end(io.args); - - if(n > 0 && io.flush(&io) < 0) - return -1; - return n; -} -- cgit v1.2.1