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

📄 iostdio.h

📁 著名的SGI的STL lib源码.(C++范型类编成,没有合适的分类,但是放到数据结构类别中也绝对适合)
💻 H
字号:
/* Copyright (C) 1993 Free Software FoundationThis file is part of the GNU IO Library.  This library is freesoftware; you can redistribute it and/or modify it under theterms of the GNU General Public License as published by theFree Software Foundation; either version 2, or (at your option)any later version.This library is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this library; see the file COPYING.  If not, write to the FreeSoftware Foundation, 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.As a special exception, if you link this library with filescompiled with a GNU compiler to produce an executable, this does not causethe resulting executable to be covered by the GNU General Public License.This exception does not however invalidate any other reasons whythe executable file might be covered by the GNU General Public License. *//* This file defines a stdio-like environment, except that it avoid   link-time name clashes with an existing stdio.   It allows for testing the libio using stdio-using programs   with an incompatible libc.a.   It is not predantically correct - e.g. some macros are used   that may evaluate a stream argument more than once.  */#ifndef _IOSTDIO_H#define _IOSTDIO_H#include "iolibio.h"typedef _IO_FILE FILE;#ifndef EOF#define EOF (-1)#endif#ifndef BUFSIZ#define BUFSIZ 1024#endif/* #define size_t, fpos_t L_tmpname TMP_MAX */#define _IOFBF 0 /* Fully buffered. */#define _IOLBF 1 /* Line buffered. */#define _IONBF 2 /* No buffering. */#define SEEK_SET 0#define SEEK_CUR 1#define SEEK_END 2#define stdin _IO_stdin#define stdout _IO_stdout#define stderr _IO_stderr#define getc(_fp) _IO_getc(_fp)#define putc(_ch, _fp) _IO_putc(_ch, _fp)#define clearerr _IO_clearerr#define fclose _IO_fclose#define feof _IO_feof#define ferror _IO_ferror#define fflush _IO_fflush#define fgetc(__fp) _IO_getc(_fp)#define fgetpos _IO_fgetpos#define fgets _IO_fgets#define fopen _IO_fopen#define fprintf _IO_fprintf#define fputc(_ch, _fp) _IO_putc(_ch, _fp)#define fputs _IO_fputs#define fread _IO_fread#define freopen _IO_freopen#define fscanf _IO_fscanf#define fseek _IO_fseek#define fsetpos _IO_fsetpos#define ftell _IO_ftell#define fwrite _IO_fwrite#define gets _IO_gets#define perror _IO_perror#define printf _IO_printf#define puts _IO_puts#define rewind _IO_rewind#define scanf _IO_scanf#define setbuf _IO_setbuf#define setbuffer _IO_setbuffer#define setvbuf _IO_setvbuf#define sprintf _IO_sprintf#define sscanf _IO_sscanf#define ungetc _IO_ungetc#define vfprintf _IO_vfprintf#define vprintf(__fmt, __args) vfprintf(stdout, __fmt, __args)#define vsprintf _IO_vsprintf#if 0/* We can use the libc versions of these, since they don't pass FILE*s. */#define remove ??? __P((const char*))#define rename ??? __P((const char* _old, const char* _new))#define tmpfile ??? __P((void))#define tmpnam ??? __P((char*))#endif#if !defined(__STRICT_ANSI__) || defined(_POSIX_SOURCE)#define fdopen _IO_fdopen#define fileno _IO_fileno#define popen _IO_popen#define pclose _IO_pclose#define setbuf _IO_setbuf#define setlinebuf _IO_setlinebuf#endif#endif /* _IOSTDIO_H */

⌨️ 快捷键说明

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