home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!micro-c!eastwind!chorn
- From: chorn@eastwind.mcds.com (Christopher Horn)
- Newsgroups: comp.lang.c
- Subject: How do you read binary data piped into stdin?
- Summary: How to make stdin read past EOF marker (ascii 26)
- Keywords: stdin, redirection, binary data
- Message-ID: <N0gRXB1w165w@eastwind.mcds.com>
- Date: Thu, 21 Jan 93 23:35:22 EST
- Reply-To: chorn@eastwind.mcds.com
- Organization: The East Wind +1 201 875 7063
- Lines: 14
-
-
- I'm relatively new to C, so still have a lot to learn, so I apologize
- if this is a silly question. I need to read raw binary data from
- stdin (it is being piped in) but it appears stdin operates in text
- mode. The first ascii 26 that comes along triggers end of file, and
- I can't read the rest of the data. Could someone please explain, or
- better yet show me a short peice of code, that could do this? The
- answer is probably obvious, but it eludes me at the moment. Thanks
- a lot!
-
-
- ---
- Christopher Horn | "We're all caught in a state of decay..."
- chorn@eastwind.mcds.com | The East Wind +1 201 875 7063
-