《操作系统》的实验代码。
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

24 lignes
675 B

il y a 10 ans
  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__ */