From b786f20bbab5a59046aa78a2c6c2a11536497202 Mon Sep 17 00:00:00 2001 From: bhgv Date: Thu, 1 Mar 2018 16:54:45 +0200 Subject: inferno-os tree was separated from the inferno-os-android (separated from the Android driver) --- lib9/rerrstr.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lib9/rerrstr.c (limited to 'lib9/rerrstr.c') diff --git a/lib9/rerrstr.c b/lib9/rerrstr.c new file mode 100644 index 0000000..ebddaf9 --- /dev/null +++ b/lib9/rerrstr.c @@ -0,0 +1,12 @@ +#include "lib9.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); +} -- cgit v1.2.3