rerrstr.c 188 B

12345678910111213
  1. #include <u.h>
  2. #include <libc.h>
  3. void
  4. rerrstr(char *buf, uint nbuf)
  5. {
  6. char tmp[ERRMAX];
  7. tmp[0] = 0;
  8. errstr(tmp, sizeof tmp);
  9. utfecpy(buf, buf+nbuf, tmp);
  10. errstr(tmp, sizeof tmp);
  11. }