plan9fox/sys/src/ape/lib/9/rerrstr.c

13 lines
173 B
C
Raw Normal View History

2020-06-06 01:52:22 +00:00
#include "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);
}