Closing files

Use the fclose() library function to close a regular or hiperspace memory file. See z/OS XL C/C++ Runtime Library Reference for more information on this library function. z/OS® XL C/C++ automatically closes memory files at the termination of the C root main environment.