ape: add missing rerrstr.c
This commit is contained in:
parent
f08e95cd93
commit
702bb7a508
12
sys/src/ape/lib/9/rerrstr.c
Normal file
12
sys/src/ape/lib/9/rerrstr.c
Normal 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);
|
||||||
|
}
|
Loading…
Reference in a new issue