13 lines
175 B
C
13 lines
175 B
C
#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));
|
|
}
|