ref: 362ac158e811bbf726f6b7ddf18fd4de6be5c43b
parent: 134ce9d45f270f91f963e423133d9cbb45da5299
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Jun 5 14:52:22 EDT 2020
ape: add missing rerrstr.c
--- /dev/null
+++ b/sys/src/ape/lib/9/rerrstr.c
@@ -1,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);
+}
--
⑨