1// C++ forwarding C stdio header. 2 3#pragma once 4 5#include <cstddef> 6#include <stdio.h> 7 8// Get rid of those macros defined in <stdio.h> in lieu of real functions. 9#undef clearerr 10#undef fclose 11#undef feof 12#undef ferror 13#undef fflush 14#undef fgetc 15#undef fgetpos 16#undef fgets 17#undef fopen 18#undef fprintf 19#undef fputc 20#undef fputs 21#undef fread 22#undef freopen 23#undef fscanf 24#undef fseek 25#undef fsetpos 26#undef ftell 27#undef fwrite 28#undef getc 29#undef getchar 30#undef gets 31#undef perror 32#undef printf 33#undef putc 34#undef putchar 35#undef puts 36#undef remove 37#undef rename 38#undef rewind 39#undef scanf 40#undef setbuf 41#undef setvbuf 42#undef sprintf 43#undef sscanf 44#undef tmpfile 45#undef tmpnam 46#undef ungetc 47#undef vfprintf 48#undef vprintf 49#undef vsprintf 50 51namespace std 52{ 53 using ::FILE; 54 using ::fpos_t; 55 56 using ::clearerr; 57 using ::fclose; 58 using ::feof; 59 using ::ferror; 60 using ::fflush; 61 using ::fgetc; 62 using ::fgetpos; 63 using ::fgets; 64 using ::fopen; 65 using ::fprintf; 66 using ::fputc; 67 using ::fputs; 68 using ::fread; 69 using ::freopen; 70 using ::fscanf; 71 using ::fseek; 72 using ::fsetpos; 73 using ::ftell; 74 using ::fwrite; 75 using ::getc; 76 using ::getchar; 77 using ::gets; 78 using ::perror; 79 using ::printf; 80 using ::putc; 81 using ::putchar; 82 using ::puts; 83 using ::remove; 84 using ::rename; 85 using ::rewind; 86 using ::scanf; 87 using ::setbuf; 88 using ::setvbuf; 89 using ::sprintf; 90 using ::sscanf; 91 using ::tmpfile; 92 using ::tmpnam; 93 using ::ungetc; 94 using ::vfprintf; 95 using ::vprintf; 96 using ::vsprintf; 97 using ::vsnprintf; 98} 99