[Coco] Looking for "C" utils
Stephen H. Fischer
SFischer1 at Mindspring.com
Tue Mar 6 21:39:17 EST 2012
Hi,
I have a vague memory that Apple uses <LF> to separate lines.
OS-9 uses <CR>.
MSDOS and Windows uses "0D 0A" <CR><LF>.
DECB uses <CR>??? I cannot find any file that can be trusted to be a SAVE
"DECB.BAS,A" on my laptop, all have "0D 0A" which must be wrong. All my
editing work is done on Windows these days and the transfer programs do the
conversion.
But I doubt that it has ever changed.
The removal of <CR> from a file is exactly what the intended application
needs. They are noise.
I suspect that the "Rcr" routine is on the OP's computer, perhaps even the
source. It just has not been found yet.
SHF
----- Original Message -----
From: "Ries, Rich (S&FS)" <Rich.Ries at Honeywell.com>
To: <coco at maltedmedia.com>
Sent: Tuesday, March 06, 2012 5:55 AM
Subject: [Coco] Looking for "C" utils
> Stephen H. Fischer wrote:
>
> ... "Rcr" perhaps is a routine to remove Carriage Returns, but why would
> you want to do that?
>
> SHF
>
> Didn't the original CoCo use just a Line Feed ($0A) for the end-of-line
> marker? If so, and IF removing CRs was the purpose of the utility, then
> the utility would be useful for files transferred from MS-DOS/Windows
> machines, which use Carriage Return-Line Feed ($0D $0A) for the EoL
> marker.
>
> If our wild-eyed guess is correct, then it would be possible to create
> this routine from the "cat" program found in K&R's "The C Programming
> Language."
>
>
> --Rich
More information about the Coco
mailing list