《操作系统》的实验代码。

24 rindas
705 B

pirms 12 gadiem
  1. #ifndef __LIBS_STDIO_H__
  2. #define __LIBS_STDIO_H__
  3. #include <defs.h>
  4. #include <stdarg.h>
  5. /* kern/libs/stdio.c */
  6. int cprintf(const char *fmt, ...);
  7. int vcprintf(const char *fmt, va_list ap);
  8. void cputchar(int c);
  9. int cputs(const char *str);
  10. int getchar(void);
  11. /* kern/libs/readline.c */
  12. char *readline(const char *prompt);
  13. /* libs/printfmt.c */
  14. void printfmt(void (*putch)(int, void *, int), int fd, void *putdat, const char *fmt, ...);
  15. void vprintfmt(void (*putch)(int, void *, int), int fd, void *putdat, const char *fmt, va_list ap);
  16. int snprintf(char *str, size_t size, const char *fmt, ...);
  17. int vsnprintf(char *str, size_t size, const char *fmt, va_list ap);
  18. #endif /* !__LIBS_STDIO_H__ */