🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #2514

Re: ReDirecting printf to memory????

#2514
From: Dave Richard Williams
Date: Thu, 04 Oct 1990 00:34
16 lines
1154 bytes
>> rather redirect all output to a memory location

Sounds like a virtual screen handling system to me. 
I don't know how you can handle it directly using printf...
but if you could somehow associate a file with a memory location
you could then reopen standard in as that memory location.. I don't
think you'll be able to handle this under ms-dos though.
 
WAIT A MINUET (musical interlude)
all your printf's could be #define'd to sprintf, but this
would still require modification to your printf calls (addition of 
the address argument)

#define'ing printf to another routine of your choice to do the 
printf to a memory location would work fine for printf, but
the rest of your I/O would be left on the screen..
Technical Details
Message-ID: <34514@cup.portal.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cs.utexas.edu!usc!wuarchive!julius.cs.uiuc.edu!apple!portal!cup.portal.com!DRWilliams
References: <31926@nigel.ee.udel.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cs.utexas.edu!usc!wuarchive!julius.cs.uiuc.edu!apple!portal!cup.portal.com!DRWilliams
From: DRWilliams@cup.portal.com (Dave Richard Williams)
Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer
Subject: Re: ReDirecting printf to memory????
Message-ID: <34514@cup.portal.com>
Date: 4 Oct 90 00:34:09 GMT
References: <31926@nigel.ee.udel.edu>
Organization: The Portal System (TM)
Lines: 16