diff options
| author | Charles.Forsyth <devnull@localhost> | 2007-01-15 21:04:26 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2007-01-15 21:04:26 +0000 |
| commit | 8911721efbf3b3721376e2baa30bae002c2975c2 (patch) | |
| tree | aa059ffa39c2c4f1cd5ed2e137dcb9b079de2717 /lib9/runevseprint.c | |
| parent | 0e96539ff7cff23233d3f0a64bb285b385a3a1f4 (diff) | |
20070115
Diffstat (limited to 'lib9/runevseprint.c')
| -rw-r--r-- | lib9/runevseprint.c | 22 |
1 files changed, 22 insertions, 0 deletions
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; +} + |
