🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Print to stdout in binary mode?

#1507
From: John Gordon
Date: Tue, 15 Sep 1992 02:15
13 lines
1108 bytes
	Hi.  I am trying to make a C program write to stdout in binary mode,
and can't figure out how to do it.  The problem is that I am writing to a
device which expects lines to be terminated by a linefeed, *not* an LF/CR
pair.  I would like to do this to stdout, to be able to pipe it.  I suppose 
I could write to an intermediate file, if I had to, though.  Can anyone
figure out a way?  I tried writing to "con", but that can't be redirected.

	Any help will be appreciated.

---
John Gordon                        My incredibly witty saying has been 
gordon@osiris.cso.uiuc.edu         Politically Corrected into oblivion.
Technical Details
Message-ID: <BuLKyI.Jz8@news.cso.uiuc.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!osiris.cso.uiuc.edu!gordon

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!osiris.cso.uiuc.edu!gordon
From: gordon@osiris.cso.uiuc.edu (John Gordon)
Subject: Print to stdout in binary mode?
Message-ID: <BuLKyI.Jz8@news.cso.uiuc.edu>
Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
Organization: University of Illinois at Urbana
Date: Tue, 15 Sep 1992 02:15:53 GMT
Keywords: stdout,binary
Lines: 13