ref: b2e29cf3158d6e8c6a0263cb1bbb06e72a21f7fb dir: /sys/src/libc/fmt/errfmt.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)); }