This is the mail archive of the guile@cygnus.com mailing list for the guile project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Jim Blandy writes:
> Custom buffered I/O
> Guile has several different kinds of I/O ports. Those that talk to the
> outside world are implemented on top of the ubiquitous C standard I/O
> FILE buffered streams. This leads to a few problems:
> o We have to use fgets for speed, but it's difficult to handle lines
> containing null characters, given fgets's interface. So we use
> ftell to find out how much we've read with fgets. But that doesn't
> work on sockets. So on sockets we fall back to our old, slow
> routine based on getc.
Why doesn't guile use getline which is encouraged in the libc docs?
Klaus Schilling