void* qFileRead ( FILE *  fp,
size_t *  nbytes 
)

Load file stream which has unknown size into memory.

Parameters:
fp FILE pointer
nbytes has two purpost, one is to set how many bytes are readed. the other is actual the number loaded bytes will be stored. nbytes must be point 0 or NULL to read end of stream.
Returns:
allocated memory pointer if successful, otherwise returns NULL.
Note:
This method append NULL character at the end of stream. but nbytes only counts actual readed bytes.

Definition at line 292 of file qFile.c.


Generated on Mon Mar 26 07:00:51 2018 for JSOC_Documentation by  doxygen 1.5.7.1