From 702bb7a508c7eb936e14a5258741728b7b586c39 Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Fri, 5 Jun 2020 18:52:22 -0700 Subject: [PATCH] ape: add missing rerrstr.c --- sys/src/ape/lib/9/rerrstr.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 sys/src/ape/lib/9/rerrstr.c diff --git a/sys/src/ape/lib/9/rerrstr.c b/sys/src/ape/lib/9/rerrstr.c new file mode 100644 index 000000000..e686ba00c --- /dev/null +++ b/sys/src/ape/lib/9/rerrstr.c @@ -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); +}