diff options
author | Nicholas <nbnoll@eml.cc> | 2021-11-12 09:22:01 -0800 |
---|---|---|
committer | Nicholas <nbnoll@eml.cc> | 2021-11-12 09:22:01 -0800 |
commit | ce05175372a9ddca1a225db0765ace1127a39293 (patch) | |
tree | 5988b4d4f6b402e4953945886fc90aae11203df6 /sys/libfmt/write.c | |
parent | b375f3cdedb5b0e08745d100b40e38d2f8396a58 (diff) |
chore: simplified organizational structurelaptop
Diffstat (limited to 'sys/libfmt/write.c')
-rw-r--r-- | sys/libfmt/write.c | 22 |
1 files changed, 0 insertions, 22 deletions
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; -} |