⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stdio.h.svn-base

📁 SImple Microkernel Distributed Operating System
💻 SVN-BASE
字号:
#ifndef _STDIO_H#define _STDIO_H#include <stddef.h>#include <stdarg.h>#define EOF 		(-1)#define NULL		(void *)0#define BUFSIZE 	1024#define OPEN_MAX	20typedef struct _iobuf {	int 		_cnt;	int 		_fd;	int		_flags;	int 		_bufsize;	unsigned char 	*_buf;	unsigned char	*_ptr;} FILE;typedef long int fpos_t;#define _IOFBF		0x000#define _IOREAD		0x001#define _IOWRITE	0x002#define _IONBF		0x004#define _IOMYBUF	0x008#define _IOEOF		0x010#define _IOERR		0x020#define _IOLBF		0x040#define _IOREADING	0x080#define _IOWRITING	0x100#define _IOAPPEND	0x200#define _IOFIFO		0x400extern FILE *_iotab[OPEN_MAX];extern FILE __stdin;extern FILE __stdout;extern FILE __stderr;#define stdin	(&__stdin)#define stdout  (&__stdout)#define stderr	(&__stderr)int _fillbuf(FILE *stream);int _flushbuf(int c, FILE *stream);#define feof(p) 	(((p)->_flag & _EOF) != 0)#define ferror(p)	(((p)->_flag & _ERR) != 0)#define fileno(p)	((p)->_fd)#define	getc(p)		(--(p)->_cnt >= 0 ? \		(unsigned char) *(p)->_ptr++ : _fillbuf(p))int putc(int c, FILE *stream);/*#define putc(c, p)	(--(p)->_cnt >= 0 ? \			 (int) (*(p)->_ptr++ = (c)) : \			  _flushbuf((c), (p)))*/// Begin removeint dummy(int c, FILE *stream);#define putc(c, p)	dummy(c, p)// End remove#define getchar()	getc(stdin)//#define putchar(x)	putc(x, stdout)void 	clearerr(FILE *stream);int	fclose(FILE *stream);FILE 	*fdopen(int c, const char *filename);//int 	feof(FILE *stream);//int 	ferror(FILE *stream);int 	fflush(FILE *stream);int 	fgetc(FILE *stream);int 	fgetpos(FILE *stream, fpos_t *pos);int 	*fgets(char *s, int n, FILE *stream);int 	*fopen(const char *filename, const char *mode);int 	fprintf(FILE *stream, const char *fmt, ...);int 	fputc(int c, FILE *stream);int 	fputs(const char *s, FILE *stream);size_t 	fread(void *ptr, size_t size, size_t nelem, FILE *stream);FILE 	*freopen(const char *filename, const char *mode, FILE *stream);int 	fscanf(FILE *stream, const char *fmt, ...);int 	fseek(FILE *stream, long offset, int mode);int 	fsetpos(FILE *stream, const fpos_t *pos);int 	ftell(FILE *stream);size_t 	fwrite(const void *ptr, size_t size, size_t nelem, FILE *stream);//int 	getc(FILE *stream);//int 	getchar(void);char 	*gets(char *s);void 	perror(const char *s);int 	printf(const char* fmt, ...);//int 	putc(int c, FILE *stream);//int 	putchar(int c);int 	puts(const char *s);int 	remove(const char *filename);int 	rename(const char *old, const char *new);void 	rewind(FILE *stream);int 	scanf(const char *fmt, ...);void 	setbuf(FILE *stream, char *buf);int 	setvbuf(FILE *stream, char *buf, int mode, size_t size);int 	sprintf(char *s, const char *fmt, ...);int 	sscanf(const char *, const char *fmt, ...);FILE 	*tmpfile(void);char 	*tmpnam(char *s);int 	ungetc(int c, FILE *stream);//int 	vprintf(FILE *stream, const char *fmt, va_list ap);//int 	vprintf(const char *format, va_list ap);//int 	vsprintf(char *s, const char *format, va_list ap);/* To be placed in the correct file during proper implementation */void *memcpy(void *dest, const void *src, size_t n);/* End replace */#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -