FILE* f3dReadHeader (char *path, f3dHeader *hdr)

Read header of an f3d file

Documentation

Read header of an f3d file. A C function defined in f3d.h.
Returns:
if succesfull, pointer to the open file. File pointer is set to the begining of the data section, which can be read slice by slice by the f3dReadSlice function. If not successful, returns NULL and the f3dErrorCode variable is set. f3rErrorMsg[f3dErrorCode] then defines an error message. For example:
...
#include <f3d.h>
...
fptr = f3dReadHeader(name, &hdr);
if(fptr == NULL){
fprintf(stderr,"%s\n", f3dErrorMsg[f3dErrorCode]);
exit(1);
}
Parameters:
name - name of the file
hdr - Reference. f3dHeader structure with detailed information about the grid.
Author:
\URL[Milos Sramek]{http:

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de