[comp.sys.amiga] Lattice's fopen

joe@dayton.UUCP (Joseph P. Larson) (04/05/89)

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...)

By the time anyone actually responds to this, I'm sure I'll have
changed all those silly bs everywhere, but it'd be nice to know
what they are.  -Joe
-- 
Life is a cabaret (old chum).
UUCP: rutgers!dayton!joe   (Picts 1-13 are   DHDSC - Joe Larson/MIS 1060
ATT : (612) 375-3537       now ready.)       700 on the Mall, Mpls, Mn. 55402

papa@pollux.usc.edu (Marco Papa) (04/06/89)

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]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=