L3DT documentation
Large 3D terrain generator

hfzOpen

Description

Open a HF2/HFZ file for reading or writing.

Function prototype

hfzFile* hfzOpen(const char* lpFileName, long Format, const char* lpMode);

Arguments

Name Type Description
lpFileName const char* The name of the file to be opened.
Format long The type of file to be opened. May be either LIBHFZ_FORMAT_HF2 (uncompressed) or LIBHFZ_FORMAT_HF2_GZ (compressed).
lpMode const char* The access mode to be used. May be “wb” (for writing), or “rb” (for reading).

Return value

Null if an error occurred (file could not be opened), and otherwise a valid non-null handle to a hfzFile struct.

Comments

None.

 
libhfz/functions/hfzopen.txt · Last modified: 2017/08/31 05:49 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki