aboutsummaryrefslogtreecommitdiff
path: root/sys/libfmt/write.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/libfmt/write.c')
-rw-r--r--sys/libfmt/write.c22
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;
-}