next up previous
Next: write_volume() Up: Brain Volume I/O Handling Previous: open_read()

close_file()  

Close a volume file handle



Synopsis


int 
close_file( header *hdr, FILE *datafile )


Description
Call this function to close the file opened with open_read().

Because the file may be a pipe, either pclose() fclose() should be called to close the file, hence this special function for closing the file. This information is derived from the header.

Usage

See open_read().

Revision


1.0  29/10-96   Ulrik Kjems     Initial version.
1.1  23/10-97    Ulrik Kjems     Handle compressed files 
and XPRIME files.


Program listing






Ulrik Kjems
6/3/1998