I/O implementation in C and C++

Richard A. O'Keefe ok at quintus.UUCP
Wed Jun 1 18:12:31 AEST 1988


In article <462 at polari.UUCP>, rlb at polari.UUCP (rlb) writes:
> I find it interesting that both K&R (C) and Stroustrup (C++) give
> I/O package implementation examples in which buffer allocation takes
> place at the first I/O, rather than in the "open".
[lines deleted]
>  Are there other advantages?

The point is, I believe, to allow you to assign your own buffer.
The sequence is
	fopen()
	setbuf() | setbuffer() | setvbuf()
	{IO}



More information about the Comp.lang.c mailing list