関数のプロトタイプ

表 1 では、さまざまな関数のプロトタイプについて要約しています。 C 入出力ストリーム関数について詳しくは、『z/OS XL C/C++ ランタイム・ライブラリー・リファレンスを参照してください。 C++ 入出力ストリーム・クラスについて詳しくは、標準 C++ 入出力ストリーム・クラスの説明が記載されている『Standard C++ Library Referenceを参照してください。

表 1. 関数のプロトタイプの要約
関数の種類 プロトタイプ
C ライブラリー関数
FILE  *fopen(const char *filename, const char *mode);

FILE  *freopen(const char *filename, const char *mode, FILE *stream);

FILE  *fdopen(int filedes, char *mode);
USL 入出力ストリーム・ライブラリー関数
// ifstream constructor
ifstream(const char* fname, int mode=ios::in,
         int prot=filebuf::openprot);

// ifstream constructor; z/OS C++ extension
ifstream(const char* fname, const char* fattr,
         int mode=ios::in, int prot=filebuf::openprot);

// ifstream::open()
void  open(const char* fname, int mode=ios::in,
           int prot=filebuf::openprot);

// z/OS C++ extension
void  open(const char* fname, const char* fattr,
           int mode=ios::in, int prot=filebuf::openprot);

// ofstream constructor
ofstream(const char* fname, int mode=ios::out,
         int prot=filebuf::openprot);
USL 入出力ストリーム・ライブラリー関数 (続き)
// ofstream constructor; z/OS C++ extension
ofstream(const char* fname, const char* fattr,
         int mode=ios::out, int prot=filebuf::openprot);

// ofstream::open()
void  open(const char* fname, int mode=ios::out,
           int prot=filebuf::openprot);

// z/OS C++ extension
void  open(const char* fname, const char* fattr,
           int mode=ios::out, int prot=filebuf::openprot);
// fstream constructor
fstream(const char* fname, int mode,
        int prot=filebuf::openprot);

// fstream constructor; z/OS C++ extension
fstream(const char* fname, const char* fattr,
        int mode, int prot=filebuf::openprot);

// fstream::open()
void  open(const char* fname, int mode,
           int prot=filebuf::openprot);

// z/OS C++ extension
void  open(const char* fname, const char* fattr,
           int mode, int prot=filebuf::openprot);

// filebuf::open()
filebuf*  open(const char* fname, int mode,
               int prot=filebuf::openprot);

// z/OS C++ extension
filebuf*  open(const char* fname, const char* fattr,
               int mode, int prot=filebuf::openprot);
標準 C++ 入出力ストリーム関数
// z/OS C++ Standard Library ifstream constructor
ifstream(const char *, ios_base::openmode, const char * _A)

// z/OS C++ Standard Library ifstream::open
void ifstream::open(const char *, ios_base::openmode, const char * _A)
void ifstream::open(const char *, ios_base::open_mode, const char * _A)

// z/OS C++ Standard Library ofstream constructor
ofstream(const char *, ios_base::openmode, const char * _A)

// z/OS C++ Standard Library ofstream::open
void ofstream::open(const char *, ios_base::openmode, const char * _A)
void ofstream::open(const char *, ios_base::open_mode, const char * _A)

// z/OS C++ Standard Library fstream constructor
fstream(const char *, ios_base::openmode, const char * _A)

// z/OS C++ Standard Library fstream::open
void fstream::open(const char *, ios_base::openmode, const char * _A)
void fstream::open(const char *, ios_base::open_mode, const char * _A)

// C++ Standard Library filebuf::open
filebuf::open(const char *, ios_base::openmode, const char * _A)
filebuf::open(const char *, ios_base::open_mode, const char * _A)