# fclose function

fclose is used to close a file.

    Library:   stdio.h

    Prototype: int fclose( FILE *stream);

    Syntax:    FILE *fp;
    	   fclose(fp);

example program.

## See Also:

- fgetc Get a character from a file.
- fputc Put a character into a file.
- fprintf Put a formatted line into a file.
- fopen Open a file.
- popen Open a pipe.
- pclose Close a pipe.

Top | Master Index | Keywords | Functions