fclose method

int fclose(
  1. FILE stream
)

Closes a file stream.

Implementation

int fclose(FILE stream) {
  try {
    stream.close();
    return 0;
  } catch (e) {
    return EOF;
  }
}