1 #include <u.h> 2 #include <libc.h> 3 #include "fmtdef.h" 4 5 int errfmt(Fmt * f)6 errfmt(Fmt *f) 7 { 8 char buf[ERRMAX]; 9 10 rerrstr(buf, sizeof buf); 11 return _fmtcpy(f, buf, utflen(buf), strlen(buf)); 12 } 13