home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / msdos / programm / 9358 < prev    next >
Encoding:
Text File  |  1992-09-14  |  1.1 KB  |  25 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. 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
  3. From: gordon@osiris.cso.uiuc.edu (John Gordon)
  4. Subject: Print to stdout in binary mode?
  5. Message-ID: <BuLKyI.Jz8@news.cso.uiuc.edu>
  6. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  7. Organization: University of Illinois at Urbana
  8. Date: Tue, 15 Sep 1992 02:15:53 GMT
  9. Keywords: stdout,binary
  10. Lines: 13
  11.  
  12.  
  13.     Hi.  I am trying to make a C program write to stdout in binary mode,
  14. and can't figure out how to do it.  The problem is that I am writing to a
  15. device which expects lines to be terminated by a linefeed, *not* an LF/CR
  16. pair.  I would like to do this to stdout, to be able to pipe it.  I suppose 
  17. I could write to an intermediate file, if I had to, though.  Can anyone
  18. figure out a way?  I tried writing to "con", but that can't be redirected.
  19.  
  20.     Any help will be appreciated.
  21.  
  22. ---
  23. John Gordon                        My incredibly witty saying has been 
  24. gordon@osiris.cso.uiuc.edu         Politically Corrected into oblivion.
  25.