bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strfile: new module


From: Jim Meyering
Subject: Re: strfile: new module
Date: Wed, 31 May 2006 15:09:47 +0200

Bruno Haible <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]