File pointer to a memory location?

Roland McGrath roland at ai.mit.edu
Tue Sep 11 15:28:56 AEST 1990


The GNU C library (which I have not yet released) has `fmemopen':

/* Create a new stream that refers to a memory buffer.  */
extern FILE *fmemopen(char *s, size_t len, const char *modes);

I believe Chris Torek's stdio for 4.4 BSD has something similar.
--
	Roland McGrath
	Free Software Foundation, Inc.
roland at ai.mit.edu, uunet!ai.mit.edu!roland



More information about the Comp.unix.programmer mailing list