int fclose (FILE * stream);
Close a stream.
Close the file associated with the specified stream after flushing all buffers associated with it.
If the stream is successfully closed 0 is returned. If any error EOF is returned.
/* fclose example */
FILE * pFile;
pFile = fopen ("myfile.txt","wt");
fprintf (pFile, "fclose example");
fopen, freopen, fflush