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 // Note: This is not a conforming implementation.
00035 
00036 #ifndef _CPP_CSTDIO
00037 #define _CPP_CSTDIO 1
00038 
00039 #include <bits/c++config.h>
00040 #include <bits/std_cstdarg.h>
00041 #include <bits/std_cstddef.h>
00042 
00043 #pragma GCC system_header
00044 #include <stdio.h>
00045 
00046 // Get rid of those macros defined in <stdio.h> in lieu of real functions.
00047 #undef remove
00048 #undef rename
00049 #undef tmpfile
00050 #undef tmpnam
00051 #undef fclose
00052 #undef fflush
00053 #undef fopen
00054 #undef freopen
00055 #undef setbuf
00056 #undef setvbuf
00057 #undef fprintf
00058 #undef fscanf
00059 #undef printf
00060 #undef scanf
00061 #undef snprintf
00062 #undef sprintf
00063 #undef sscanf
00064 #undef vfprintf
00065 #undef vfscanf
00066 #undef vprintf
00067 #undef vscanf
00068 #undef vsnprintf
00069 #undef vsprintf
00070 #undef vsscanf
00071 #undef fgetc
00072 #undef fgets
00073 #undef fputc
00074 #undef fputs
00075 #undef getc
00076 #undef getchar
00077 #undef gets
00078 #undef putc
00079 #undef putchar
00080 #undef puts
00081 #undef ungetc
00082 #undef fread
00083 #undef fwrite
00084 #undef fgetpos
00085 #undef fseek
00086 #undef fsetpos
00087 #undef ftell
00088 #undef rewind
00089 #undef clearerr
00090 #undef feof
00091 #undef ferror
00092 #undef perror
00093 
00094 namespace std 
00095 {
00096   using ::FILE;
00097   using ::fpos_t;
00098 
00099   extern "C" int remove(const char*); 
00100   extern "C" int rename(const char*, const char*); 
00101   extern "C" FILE* tmpfile(void); 
00102   extern "C" char* tmpnam(char*); 
00103   extern "C" int fclose(FILE*); 
00104   extern "C" int fflush(FILE*); 
00105   extern "C" FILE* fopen(const char*, const char*); 
00106   extern "C" FILE* freopen(const char*, const char*, FILE*); 
00107   extern "C" void setbuf(FILE*, char*);
00108   extern "C" int setvbuf(FILE*, char*, int, size_t); 
00109   extern "C" int fprintf(FILE*, const char*, ...); 
00110   extern "C" int fscanf(FILE*, const char*, ...); 
00111   extern "C" int printf(const char*, ...); 
00112   extern "C" int scanf(const char*, ...); 
00113   extern "C" int snprintf(char *, size_t, const char*, ...);
00114   extern "C" int sprintf(char *, const char*, ...); 
00115   extern "C" int sscanf(const char*, const char*, ...); 
00116   extern "C" int vfprintf(FILE*, const char*, va_list); 
00117   extern "C" int vfscanf(FILE*, const char*, va_list); 
00118   extern "C" int vprintf(const char*, va_list); 
00119   extern "C" int vscanf(const char*, va_list); 
00120   extern "C" int vsnprintf(char*, size_t, const char*, va_list); 
00121   extern "C" int vsprintf(char*, const char*, va_list); 
00122   extern "C" int vsscanf(const char*, const char*, va_list); 
00123   extern "C" int fgetc(FILE *); 
00124   extern "C" char *fgets(char*, int, FILE*); 
00125   extern "C" int fputc(int, FILE*); 
00126   extern "C" int fputs(const char*, FILE*); 
00127   extern "C" int getc(FILE*); 
00128   extern "C" int getchar(void); 
00129   extern "C" char *gets(char*); 
00130   extern "C" int putc(int, FILE*); 
00131   extern "C" int putchar(int); 
00132   extern "C" int puts(const char*); 
00133   extern "C" int ungetc(int, FILE*);
00134   extern "C" size_t fread(void*, size_t, size_t, FILE*); 
00135   extern "C" size_t fwrite(const void*, size_t, size_t, FILE*); 
00136   extern "C" int fgetpos(FILE*, fpos_t*); 
00137   extern "C" int fseek(FILE*, long int, int); 
00138   extern "C" int fsetpos(FILE*, const fpos_t*); 
00139   extern "C" long int ftell(FILE*); 
00140   extern "C" void rewind(FILE*); 
00141   extern "C" void clearerr(FILE*); 
00142   extern "C" int feof(FILE*); 
00143   extern "C" int ferror(FILE*); 
00144   extern "C" void perror(const char*);
00145 }
00146 
00147 #endif
00148 
00149 
00150 
00151 
00152 
00153 
00154 
00155 

Generated at Tue May 1 16:28:38 2001 for libstdc++-v3 by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001