Go to the first, previous, next, last section, table of contents.


fclose

Syntax

#include <stdio.h>

int fclose(FILE *file);

Description

This function closes the given file.

Return Value

Zero on success, else EOF.

Portability

ANSI, POSIX

Example

FILE *f = fopen("data", "r");
fprintf(f, "Hello\n");
fclose(f);


Go to the first, previous, next, last section, table of contents.