Xref: utzoo comp.os.msdos.programmer:1294 alt.msdos.programmer:2157 Path: 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 >> 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..