Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!samsung!balrog!ctron.com From: dj@ctron.com (DJ Delorie) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: dj gcc problem Message-ID: <1674@balrog.ctron.com> Date: 18 Jun 91 11:38:06 GMT References: <1991Jun13.140903.29800@truevision.com> <1991Jun17.172132.31493@kuhub.cc.ukans.edu> <1991Jun18.045843.24870@jato.jpl.nasa.gov> Sender: news@balrog.ctron.com Reply-To: dj@ctron.com Organization: None whatsoever Lines: 17 Nntp-Posting-Host: bragi In article <1991Jun18.045843.24870@jato.jpl.nasa.gov>, sam@kalessin.jpl.nasa.gov (Sam Sirlin) writes: > pass intermediate results using stdout, stdin. The problem is that the > data passed ought to be binary rather than dos text. It appears to me > that stdin (e.g. putchar, getchar etc.) only write/read dos text. If I Hmmm... I seem to recall adding a "setmode" function that operates similarly to Turbo's, but I don't recall if it is supposed to work with stdio streams. You've got the sources - check it out and fix it if it doesn't (or add the apropriate function). I'll check out the documentation and my sources as well. setmode() on a FILE*'s file number should be enough for stdout/stdin, as long as you don't do ftell() on it, which (I believe) is the only function that uses the flags set in the FILE structure (you can always reset the flag by hand - see stdio.h) DJ dj@ctron.com