dmz_readfile

The dmz_readfile function takes a file name and reads that file into memory.

size_t dmz_readfile (

char* filename,

char** data

);

 

Return Values

size of file read in bytes, 0 on error

 

Parameters

filename

null-terminated string containing name of the file to read in

data

pointer to a pointer to memory where data will be placed

 

Remarks

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.

 

QuickInfo

Windows: Requires dmzcore.dll


Last updated October 09, 2000 00:02 by afedosov