diff options
| -rw-r--r-- | sys/src/ape/lib/9/rerrstr.c | 12 |
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); +} |
