13 lines · 188 B · C
RawDownload
#include <u.h>#include <libc.h> voidrerrstr(char *buf, uint nbuf){	char tmp[ERRMAX]; 	tmp[0] = 0;	errstr(tmp, sizeof tmp);	utfecpy(buf, buf+nbuf, tmp);	errstr(tmp, sizeof tmp);}