From 8911721efbf3b3721376e2baa30bae002c2975c2 Mon Sep 17 00:00:00 2001 From: "Charles.Forsyth" Date: Mon, 15 Jan 2007 21:04:26 +0000 Subject: 20070115 --- lib9/runevseprint.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lib9/runevseprint.c (limited to 'lib9/runevseprint.c') diff --git a/lib9/runevseprint.c b/lib9/runevseprint.c new file mode 100644 index 00000000..46fdee60 --- /dev/null +++ b/lib9/runevseprint.c @@ -0,0 +1,22 @@ +#include "lib9.h" + +Rune* +runevseprint(Rune *buf, Rune *e, char *fmt, va_list args) +{ + Fmt f; + + if(e <= buf) + return nil; + f.runes = 1; + f.start = buf; + f.to = buf; + f.stop = e - 1; + f.flush = nil; + f.farg = nil; + f.nfmt = 0; + f.args = args; + dofmt(&f, fmt); + *(Rune*)f.to = '\0'; + return f.to; +} + -- cgit v1.2.3