stderr.c 249 B

12345678910111213
  1. #include "stdio_impl.h"
  2. static unsigned char buf[UNGET];
  3. static FILE f = {
  4. .buf = buf+UNGET,
  5. .buf_size = 0,
  6. .fd = 2,
  7. .flags = F_PERM | F_NORD,
  8. .write = __stdio_write,
  9. .seek = __stdio_seek,
  10. .close = __stdio_close,
  11. };
  12. FILE *const stderr = &f;