mirror of
https://github.com/SmallPond/MIT6.828_OS.git
synced 2026-04-28 21:01:11 +08:00
LAB 4 IS DONE.
This commit is contained in:
33
lab/inc/stdio.h
Normal file
33
lab/inc/stdio.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#ifndef JOS_INC_STDIO_H
|
||||
#define JOS_INC_STDIO_H
|
||||
|
||||
#include <inc/stdarg.h>
|
||||
|
||||
#ifndef NULL
|
||||
#define NULL ((void *) 0)
|
||||
#endif /* !NULL */
|
||||
|
||||
// lib/console.c
|
||||
void cputchar(int c);
|
||||
int getchar(void);
|
||||
int iscons(int fd);
|
||||
|
||||
// lib/printfmt.c
|
||||
void printfmt(void (*putch)(int, void*), void *putdat, const char *fmt, ...);
|
||||
void vprintfmt(void (*putch)(int, void*), void *putdat, const char *fmt, va_list);
|
||||
int snprintf(char *str, int size, const char *fmt, ...);
|
||||
int vsnprintf(char *str, int size, const char *fmt, va_list);
|
||||
|
||||
// lib/printf.c
|
||||
int cprintf(const char *fmt, ...);
|
||||
int vcprintf(const char *fmt, va_list);
|
||||
|
||||
// lib/fprintf.c
|
||||
int printf(const char *fmt, ...);
|
||||
int fprintf(int fd, const char *fmt, ...);
|
||||
int vfprintf(int fd, const char *fmt, va_list);
|
||||
|
||||
// lib/readline.c
|
||||
char* readline(const char *prompt);
|
||||
|
||||
#endif /* !JOS_INC_STDIO_H */
|
||||
Reference in New Issue
Block a user