[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: ?problem with read("*l") with binary data
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 3 Apr 2001 14:08:10 -0300 (EST)
>it won't *break* anything for libio to allow nulls in a string on *l
Yes, but it will slow down the processing of files line by line, which is by
far more common with text files that do not contain nulls.
I suggest that you add a new function "readuntil(c)" that reads everything until
it finds a byte "c", or add a new option "*Uc" to "read".