a
This commit is contained in:
12
libc/errfmt.c
Normal file
12
libc/errfmt.c
Normal file
@ -0,0 +1,12 @@
|
||||
#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));
|
||||
}
|
Reference in New Issue
Block a user