summaryrefslogtreecommitdiff
path: root/sys/src/ape
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2020-06-05 18:52:22 -0700
committerOri Bernstein <ori@eigenstate.org>2020-06-05 18:52:22 -0700
commit702bb7a508c7eb936e14a5258741728b7b586c39 (patch)
treea1582a668f5e535b883988e06afdae6a2c5fefd4 /sys/src/ape
parentf08e95cd93b7b6e2e2ee1a61ddd44e81a9337155 (diff)
ape: add missing rerrstr.c
Diffstat (limited to 'sys/src/ape')
-rw-r--r--sys/src/ape/lib/9/rerrstr.c12
1 files changed, 12 insertions, 0 deletions
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);
+}