shithub: drawterm

ref: 5d6ebf7a53a2992d56e7403afd5cfce59b15e879
dir: /libc/errfmt.c/

View raw version
#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));
}