You can cheat by using setvbuf() and imposing your own buffer to the FILE* routine. What and how the underlying implementation put in that buffer is of course not documented but not very difficult to guess (for example fseek()/fread() will always fill the buffer from 0 to the end (of buffer or file depending what come first).There are 2 main issues with FILE *:1) it does not provide buffer access, so you must rely on things like getline if they exist. But these have their own problems (i.e. do not support unicode, require C-malloc'd buffer)
On Tuesday, 31 May 2016 at 12:42:23 UTC, Steven Schveighoffer
wrote:
- Re: Transi... Dicebot via Digitalmars-d
- Re: Transi... Steven Schveighoffer via Digitalmars-d
- Re: Transient ranges Steven Schveighoffer via Digitalmars-d
- Re: Transient ranges Jonathan M Davis via Digitalmars-d
- Re: Transient ranges Jack Stouffer via Digitalmars-d
- Re: Transient ranges Steven Schveighoffer via Digitalmars-d
- Re: Transient range... Andrei Alexandrescu via Digitalmars-d
- Re: Transient r... Steven Schveighoffer via Digitalmars-d
- Re: Transi... Andrei Alexandrescu via Digitalmars-d
- Re: Transi... Steven Schveighoffer via Digitalmars-d
- Re: Transi... Patrick Schluter via Digitalmars-d
- Re: Transi... Steven Schveighoffer via Digitalmars-d
- Re: Transient ranges Andrei Alexandrescu via Digitalmars-d
- Re: Transient ranges Steven Schveighoffer via Digitalmars-d
- Re: Transient ranges Andrei Alexandrescu via Digitalmars-d
- Re: Transient ranges H. S. Teoh via Digitalmars-d
- Re: Transient range... Jonathan M Davis via Digitalmars-d
- Re: Transient range... Steven Schveighoffer via Digitalmars-d
- Re: Transient r... Joseph Rushton Wakeling via Digitalmars-d
- Re: Transi... Steven Schveighoffer via Digitalmars-d
- Re: Transi... Steven Schveighoffer via Digitalmars-d
