Bruno Haible <[EMAIL PROTECTED]> wrote:
> /* Read the contents of an input stream, and return it, terminated with a NUL
>    byte. */
> char* fread_file (FILE* stream)
> {

How about an interface that provides a length as well as a malloc'd
buffer, so that it works also when the file contains NUL bytes?
Likewise on the output side.


Reply via email to