Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!lll-lcc!lll-crg!hoptoad!gnu
From: gnu@hoptoad.uucp (John Gilmore)
Newsgroups: comp.sys.atari.st,comp.lang.c
Subject: "C" on Atari looks pretty wierd
Message-ID: <1587@hoptoad.uucp>
Date: Tue, 23-Dec-86 06:23:14 EST
Article-I.D.: hoptoad.1587
Posted: Tue Dec 23 06:23:14 1986
Date-Received: Tue, 23-Dec-86 21:40:48 EST
Organization: Nebula Consultants in San Francisco
Lines: 27
Xref: mnetor comp.sys.atari.st:546 comp.lang.c:525

I have been saving most of the sources that float through the Atari and
Amiga newsgroups on the off chance that some of them might be portable
to other environments (e.g. GNU or Unix).  Things seem to be getting
worse rather than better as time goes on though.  I am now seeing things
that don't even look like C, e.g. this fragment from the recently posted
"Backup" program:

dirlen = strlen(dir) + 1;       /* Save length of pathname to this point */
strcat(dir, "\\*.*");   /* Start with 1st file          */
//cpynchar(alert6 + 4L, dir, 20);
//form_alert(1,alert6);

What are these job control cards doing in the middle of a C program?
Do Atari C compilers really accept these?  What do they do?

Also, the library routines used are almost totally bonkers.  E.g.
to open a file they use Fopen rather than fopen.  To read it's Fread.
To scan a directory it's Fsfirst and Fsnext rather than opendir and
readdir.  For malloc/free they even use Malloc/Mfree!  What was wrong
with the old names, did they make software too easy to port?

While I have my disagreements with the draft ANSI standard for C,
it would sure be better than this kind of wild change-for-change's-sake.
-- 
John Gilmore  {sun,ptsfa,lll-crg,ihnp4}!hoptoad!gnu   jgilmore@lll-crg.arpa
Call +1 800 854 7179 or +1 714 540 9870 and order X3.159-198x (ANSI C) for $65.
Then spend two weeks reading it and weeping.  THEN send in formal comments!