shithub: riscv

Download patch

ref: 702bb7a508c7eb936e14a5258741728b7b586c39
parent: f08e95cd93b7b6e2e2ee1a61ddd44e81a9337155
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);
+}
--