Whole document tree
    

Whole document tree

std_cstdio.h Source File
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

std_cstdio.h

Go to the documentation of this file.
00001 // -*- C++ -*- forwarding header.
00002 
00003 // Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
00004 //
00005 // This file is part of the GNU ISO C++ Library.  This library is free
00006 // software; you can redistribute it and/or modify it under the
00007 // terms of the GNU General Public License as published by the
00008 // Free Software Foundation; either version 2, or (at your option)
00009 // any later version.
00010 
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 // GNU General Public License for more details.
00015 
00016 // You should have received a copy of the GNU General Public License along
00017 // with this library; see the file COPYING.  If not, write to the Free
00018 // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
00019 // USA.
00020 
00021 // As a special exception, you may use this file as part of a free software
00022 // library without restriction.  Specifically, if other files instantiate
00023 // templates or use macros or inline functions from this file, or you compile
00024 // this file and link it with other files to produce an executable, this
00025 // file does not by itself cause the resulting executable to be covered by
00026 // the GNU General Public License.  This exception does not however
00027 // invalidate any other reasons why the executable file might be covered by
00028 // the GNU General Public License.
00029 
00030 //
00031 // ISO C++ 14882: 27.8.2  C Library files
00032 //
00033 
00034 #ifndef _CPP_CSTDIO
00035 #define _CPP_CSTDIO 1
00036 
00037 #include <bits/c++config.h>
00038 #include <bits/std_cstddef.h>
00039 
00040 #pragma GCC system_header
00041 #include <stdio.h>
00042 
00043 // Get rid of those macros defined in <stdio.h> in lieu of real functions.
00044 #undef clearerr
00045 #undef fclose
00046 #undef feof
00047 #undef ferror
00048 #undef fflush
00049 #undef fgetc
00050 #undef fgetpos
00051 #undef fgets
00052 #undef fopen
00053 #undef fprintf
00054 #undef fputc
00055 #undef fputs
00056 #undef fread
00057 #undef freopen
00058 #undef fscanf
00059 #undef fseek
00060 #undef fsetpos
00061 #undef ftell
00062 #undef fwrite
00063 #undef getc
00064 #undef getchar
00065 #undef gets
00066 #undef perror
00067 #undef printf
00068 #undef putc
00069 #undef putchar
00070 #undef puts
00071 #undef remove
00072 #undef rename
00073 #undef rewind
00074 #undef scanf
00075 #undef setbuf
00076 #undef setvbuf
00077 #undef sprintf
00078 #undef sscanf
00079 #undef tmpfile
00080 #undef tmpnam
00081 #undef ungetc
00082 #undef vfprintf
00083 #undef vprintf
00084 #undef vsprintf
00085 
00086 namespace std 
00087 {
00088   using ::FILE;
00089   using ::fpos_t;
00090 
00091   using ::clearerr;
00092   using ::fclose;
00093   using ::feof;
00094   using ::ferror;
00095   using ::fflush;
00096   using ::fgetc;
00097   using ::fgetpos;
00098   using ::fgets;
00099   using ::fopen;
00100   using ::fprintf;
00101   using ::fputc;
00102   using ::fputs;
00103   using ::fread;
00104   using ::freopen;
00105   using ::fscanf;
00106   using ::fseek;
00107   using ::fsetpos;
00108   using ::ftell;
00109   using ::fwrite;
00110   using ::getc;
00111   using ::getchar;
00112   using ::gets;
00113   using ::perror;
00114   using ::printf;
00115   using ::putc;
00116   using ::putchar;
00117   using ::puts;
00118   using ::remove;
00119   using ::rename;
00120   using ::rewind;
00121   using ::scanf;
00122   using ::setbuf;
00123   using ::setvbuf;
00124   using ::sprintf;
00125   using ::sscanf;
00126   using ::tmpfile;
00127   using ::tmpnam;
00128   using ::ungetc;
00129   using ::vfprintf;
00130   using ::vprintf;
00131   using ::vsprintf;
00132 }
00133 
00134 #if _GLIBCPP_USE_C99
00135 
00136 #undef snprintf
00137 #undef vfscanf
00138 #undef vscanf
00139 #undef vsnprintf
00140 #undef vsscanf
00141 
00142 namespace __gnu_cxx
00143 {
00144   using ::snprintf;
00145   using ::vfscanf;
00146   using ::vscanf;
00147   using ::vsnprintf;
00148   using ::vsscanf;
00149 }
00150 
00151 namespace std
00152 {
00153   using __gnu_cxx::snprintf;
00154   using __gnu_cxx::vfscanf;
00155   using __gnu_cxx::vscanf;
00156   using __gnu_cxx::vsnprintf;
00157   using __gnu_cxx::vsscanf;
00158 }
00159 #endif 
00160 
00161 #endif

Generated on Mon Apr 8 03:11:33 2002 for libstdc++-v3 Source by doxygen1.2.15