www.delorie.com/djgpp/doc/libc-2.01/libc_257.html   search  
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.

Example

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


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

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997