🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #841

Re: File pointer to a memory location?

#841
From: Roland McGrath
Date: Tue, 11 Sep 1990 05:28
10 lines
980 bytes
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@ai.mit.edu, uunet!ai.mit.edu!roland
Technical Details
Message-ID: <ROLAND.90Sep11012856@churchy.ai.mit.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!snorkelwacker!ai-lab!churchy.ai.mit.edu!roland
References: <119609@linus.mitre.org> <9455@jpl-devvax.JPL.NASA.GOV>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!snorkelwacker!ai-lab!churchy.ai.mit.edu!roland
From: roland@ai.mit.edu (Roland McGrath)
Newsgroups: comp.unix.programmer
Subject: Re: File pointer to a memory location?
Message-ID: <ROLAND.90Sep11012856@churchy.ai.mit.edu>
Date: 11 Sep 90 05:28:56 GMT
References: <119609@linus.mitre.org> <9455@jpl-devvax.JPL.NASA.GOV>
Sender: news@ai.mit.edu
Organization: Hackers Anonymous International, Ltd., Inc. (Applications
 welcome)
Lines: 10
In-reply-to: lwall@jpl-devvax.JPL.NASA.GOV's message of 11 Sep 90 01:54:54 GMT