errfmt.c 134 B

123456789101112
  1. #include <u.h>
  2. #include <libc.h>
  3. #include <oventi.h>
  4. int
  5. vtErrFmt(Fmt *f)
  6. {
  7. char *s;
  8. s = vtGetError();
  9. return fmtstrcpy(f, s);
  10. }