[Simh] Typewriters and Teletype (Carriage Returns)
Brett Bump
bbump at rsts.org
Thu Sep 6 12:17:00 EDT 2007
On Thu, 30 Aug 2007, Peter Lund wrote:
> I can make a patch that will work with both C99 and pre-C99 gcc.
>
> (Btw, why on Earth does it contain \r? The file I/O code and/or the
> terminal code in the OS will translate \n into \r\n if necessary. The
> standard in C is to only use \n...)
>
> -Peter
Old habit (I would call it purist's coding). Some programmers have been
around longer than C (some even before B, not me of course ;-). You tend
to write in the style you grew up with (and the system you were on). For
alot of us, this was before unix moved from the PDP-7 to the PDP-11 so we
used what we had until Bell V6 came along.
Brett
More information about the Simh
mailing list