nonstdio.h
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:1k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. /*
  2.  * BK Id: SCCS/s.nonstdio.h 1.8 12/01/01 20:09:07 benh
  3.  */
  4. typedef int FILE;
  5. extern FILE *xmon_stdin, *xmon_stdout;
  6. #define EOF (-1)
  7. #define stdin xmon_stdin
  8. #define stdout xmon_stdout
  9. #define printf xmon_printf
  10. #define fprintf xmon_fprintf
  11. #define fputs xmon_fputs
  12. #define fgets xmon_fgets
  13. #define putchar xmon_putchar
  14. #define getchar xmon_getchar
  15. #define putc xmon_putc
  16. #define getc xmon_getc
  17. #define fopen(n, m) NULL
  18. #define fflush(f) do {} while (0)
  19. #define fclose(f) do {} while (0)
  20. extern char *fgets(char *, int, void *);
  21. extern void xmon_printf(const char *, ...);
  22. extern void xmon_fprintf(void *, const char *, ...);
  23. extern void xmon_sprintf(char *, const char *, ...);
  24. extern void xmon_puts(char*);
  25. #define perror(s) printf("%s: no files!n", (s))