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/write.c | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 sys/libfmt/write.c (limited to 'sys/libfmt/write.c') diff --git a/sys/libfmt/write.c b/sys/libfmt/write.c deleted file mode 100644 index 9a77223..0000000 --- a/sys/libfmt/write.c +++ /dev/null @@ -1,22 +0,0 @@ -#include "internal.h" - -int -fmt·write(fmt·State *io, char *fmt, ...) -{ - int n; - va_list args; - - io->flag = io->width = io->prec = 0; - - va_copy(args, io->args); - va_end(io->args); - - va_start(io->args, fmt); - n = fmt·do(io, fmt); - va_end(io->args); - - io->flag = io->width = io->prec = 0; - if(n >= 0) - return 0; - return n; -} -- cgit v1.2.1