| fp | 閉じたいファイルのファイルポインタを保持している構造体。 A structure that possess the file pointer of the file to close. |
| 条件 Condition |
動作 Behaviour of the function |
| fp.main=NULL | プログラムをエラー終了する。 The program finishes as an error. |
| fp.main._fileno<0 これはファイルが既に閉じられていることを意味する。 This means that the file was already closed. |
プログラムをエラー終了する。 The program finishes as an error. |
| 関数fcloseの戻り値がEOF Function fclose returns EOF |
プログラムをエラー終了する。 The program finishes as an error. |
| 上記以外の場合 The other cases |
関数fcloseによりファイルを閉じる。 Close the file by function fclose. |