RAD Studio
ContentsIndex
PreviousUpNext
fclose

Header File 

stdio.h  

Category 

Input/output Routines 

Prototype 

int fclose(FILE *stream); 

Description 

Closes a stream. 

fclose closes the named stream. All buffers associated with the stream are flushed before closing. System-allocated buffers are freed upon closing. Buffers assigned with setbuf or setvbuf are not automatically freed. (But if setvbuf is passed null for the buffer pointer it will free it upon close.) 

Return Value 

fclose returns 0 on success. It returns EOF if any errors were detected. 

Portability  

POSIX 
Win32 
ANSI C 
ANSI C++ 
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!