In said:
His problem is that he's compiling functions from K&R,
some of which have the same names as some standard library functions.
Could you, please, point out, which functions that have the same names as
some standard library functions is he using? I can't find any conflict
between the names used by the last example in chapter 5 and the standard
C library. Sure, the program uses printf, strcmp and atof, but it doesn't
define them.
His problem is that his implementation declares some of the user name
space identifiers used by that program, most likely as macros.
Any function in K&R1, which is defined in N869,
is part of the C89 standard library.
Any function in K&R1, which is not defined in N869,
is not part of the C89 standard library.
How could this help him with his problem? Neither comp nor exch, the
identifiers creating him problems, are mentioned in N869 as macro names,
are they?
N869 is free, and the point of using K&R1,
is that his resources are limited.
"I can't afford the newer second edition"
It might be free, but it doesn't solve his problem. So, what exactly is
your point?
Dan