STDIO (Re: TRUE and FALSE)

Roland McGrath roland at ai.mit.edu
Sun Sep 9 03:58:44 AEST 1990


The GNU C Library (when I release it--don't ask) allows user-specified read,
write, seek, and close functions that operate on magic cookies (void *).

There is also another level of customization that can be made: user-specified
input_room and output_room functions.  These must understand stdio internals,
but are very useful for things like a self-expanding buffer (this is how I
implement asprintf, which is sprintf but gives you back a malloc'd string of
just the right length).
--
	Roland McGrath
	Free Software Foundation, Inc.
roland at ai.mit.edu, uunet!ai.mit.edu!roland



More information about the Comp.lang.c mailing list