drawterm/libc/errfmt.c

13 lines
175 B
C
Raw Normal View History

2005-08-08 14:50:13 +02:00
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
int
errfmt(Fmt *f)
{
char buf[ERRMAX];
rerrstr(buf, sizeof buf);
return _fmtcpy(f, buf, utflen(buf), strlen(buf));
}