• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: in-memory files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: in-memory files?


  • Subject: Re: in-memory files?
  • From: "John C. Randolph" <email@hidden>
  • Date: Mon, 20 Aug 2001 00:48:04 -0700

On Sunday, August 19, 2001, at 11:20 PM, R. Tony Goold wrote:

Ah, I see! I misunderstood you, and read it as you wanting to treat a file as a chunk of memory rather than the other way around.

sprintf() and snprintf() are C functions you can use to print into a memory buffer, analogous to printf().

Thanks, but that's still not it. The situation is that there is code I want to re-use that wants to write to an open file descriptor, (using fwrite(), fprintf(), etc.) and I want to capture that output in memory, rather than letting it get out to the filesystem.

-jcr (way too rusty on pipes, memory streams, and the like.)

[Objc retain];


  • Follow-Ups:
    • Re: in-memory files?
      • From: "R. Tony Goold" <email@hidden>
  • Prev by Date: Re: in-memory files?
  • Next by Date: Re: WTF? How can this work?
  • Previous by thread: Re: in-memory files?
  • Next by thread: Re: in-memory files?
  • Index(es):
    • Date
    • Thread