The dmz_readfile function takes a file name and reads that file into memory.
size_t dmz_readfile (
size of file read in bytes, 0 on error
null-terminated string containing name of the file to read in
pointer to a pointer to memory where data will be placed
Since dmz_readfile will automatically allocate as much memory as needed for the file. data has to be a pointer to a pointer to the allocated memory. In other words, dmz_readfile will place the pointer to the allocated memory in the address pointed to by data.
Windows: Requires dmzcore.dll
Last updated October 09, 2000 00:02 by afedosov