ape: add missing rerrstr.c

This commit is contained in:
Ori Bernstein 2020-06-05 18:52:22 -07:00
parent f08e95cd93
commit 702bb7a508

View file

@ -0,0 +1,12 @@
#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);
}