add lab4 spoc discuss
This commit is contained in:
24
related_info/lab4/lab4-spoc-discuss/libs/stdio.h
Normal file
24
related_info/lab4/lab4-spoc-discuss/libs/stdio.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef __LIBS_STDIO_H__
|
||||
#define __LIBS_STDIO_H__
|
||||
|
||||
#include <defs.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
/* kern/libs/stdio.c */
|
||||
int cprintf(const char *fmt, ...);
|
||||
int vcprintf(const char *fmt, va_list ap);
|
||||
void cputchar(int c);
|
||||
int cputs(const char *str);
|
||||
int getchar(void);
|
||||
|
||||
/* kern/libs/readline.c */
|
||||
char *readline(const char *prompt);
|
||||
|
||||
/* libs/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 ap);
|
||||
int snprintf(char *str, size_t size, const char *fmt, ...);
|
||||
int vsnprintf(char *str, size_t size, const char *fmt, va_list ap);
|
||||
|
||||
#endif /* !__LIBS_STDIO_H__ */
|
||||
|
||||
Reference in New Issue
Block a user