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.