Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ukma!husc6!bbn!oberon!pollux.usc.edu!papa From: papa@pollux.usc.edu (Marco Papa) Newsgroups: comp.sys.amiga Subject: Re: Lattice's fopen() modes. Message-ID: <16323@oberon.USC.EDU> Date: 5 Apr 89 18:00:30 GMT References: <6485@dayton.UUCP> Sender: news@oberon.USC.EDU Reply-To: papa@pollux.usc.edu (Marco Papa) Distribution: usa Organization: Felsina Software, Los Angeles, CA Lines: 22 In article <6485@dayton.UUCP> joe@dayton.UUCP (Joseph P. Larson) writes: > >I'm trying to port Wm. Loftus's uucico to Manx. I've encountered a >few difficulties. Hoping the net can answer another question. (Or >if someone else has already done this, care to send me a copy of all >your source?) >Anyways, a lot of the fopens use a mode of "rb" or "wb". What's the >b for? Do I need to worry about this with Manx or can I just change >it to "r" or "w"? (Actually, my Manx manual is currently at work >while I'm at home for a change, but I don't *think* Manx has a "b" >option and those perfectly good looking fopens() are failing...) 'b' with Lattice means "binary". It is a result of the difference in the definition of the newline character (CR/LF for PC-DOS, LF for UNIX). On the Amiga it makes no difference. Take it out for the MANX version. -- Marco Papa 'Doc' -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= uucp:...!pollux!papa BIX:papa ARPAnet:pollux!papa@oberon.usc.edu "There's Alpha, Beta, Gamma and Diga!" -- Leo Schwab [quoting Rick Unland] -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=