Article View: comp.os.os2.programmer
Article #1629Re: printf() will work in PM programs
From: D G Booth
Date: Fri, 09 Nov 1990 09:00
Date: Fri, 09 Nov 1990 09:00
20 lines
1270 bytes
1270 bytes
In article <21079@ttidca.TTI.COM> terence@ttidca.TTI.COM (Terence Davis) writes: > It is possible to use printf() in PM programs if you can live with seeing > the output after program execution. I have a device driver that gives a device called AUX which is actually my mono monitor. I frequently run PM programs redirected to AUX so that I can see the debugging printf's as they come out. The only thing you have to watch with this is that the C runtime library will attempt to buffer output, so it is worth overriding this with setbuf. I believe the device driver is reasonably widely available. Duncan Booth -- Automatic Disclaimer: The views expressed above are those of the author alone and may not represent the views of the IBM PC User Group. -- Duncan Booth, RCP Ltd. Didcot, Oxon, UK duncanb@ibmpcug.co.uk Bix: jrichards
Technical Details
Message-ID:
<1990Nov9.090035.657@ibmpcug.co.uk>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!slxsys!ibmpcug!duncanbShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!slxsys!ibmpcug!duncanb From: duncanb@ibmpcug.co.uk (D G Booth) Newsgroups: comp.os.os2.programmer,connect.audit Subject: Re: printf() will work in PM programs Message-ID: <1990Nov9.090035.657@ibmpcug.co.uk> Date: 9 Nov 90 09:00:35 GMT Organization: The IBM PC User Group, UK. Lines: 20