home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.msdos.programmer
- Path: 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
-
-
- 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.
-