new venti library.

This commit is contained in:
rsc 2003-11-23 18:19:58 +00:00
parent 9df487d720
commit 056fe1ba7f
28 changed files with 4635 additions and 0 deletions

18
src/libventi/scorefmt.c Normal file
View file

@ -0,0 +1,18 @@
#include <u.h>
#include <libc.h>
#include <venti.h>
int
vtscorefmt(Fmt *f)
{
uchar *v;
int i;
v = va_arg(f->args, uchar*);
if(v == nil)
fmtprint(f, "*");
else
for(i = 0; i < VtScoreSize; i++)
fmtprint(f, "%2.2ux", v[i]);
return 0;
}