《操作系统》的实验代码。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
675 B

преди 10 години
  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 *), void *putdat, const char *fmt, ...);
  15. void vprintfmt(void (*putch)(int, void *), 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__ */