ref: 66b6185845e85258f1408271d5f705aacfa6ffdb 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)); }