#include <9pm/u.h>
#include <9pm/libc.h>

void
rerrstr(char *buf, uint nbuf)
{
	char tmp[ERRMAX];

	tmp[0] = 0;
	errstr(tmp, sizeof tmp);
	utfecpy(buf, buf+nbuf, tmp);
	errstr(tmp, sizeof tmp);
}


syntax highlighted by Code2HTML, v. 0.9.1