On 2010 Dec 2, at 7:02 PM, ben wrote:
On 12/2/2010 7:51 PM, Brent Hilpert wrote:
main()
{
Read();
}
Read()
{
blah;
blah;
}
Well I am stumped, other case sensitvity for Read
and the OS read routine, when linked.
You're not stumped, that was exactly the problem. The linker decided to
prioritise the Unix system call over the user's routine, without
complaint or advisory. In the larger context of all the surrounding
code, all us experts who just as a matter of unconscious habit avoided
naming routines like that, didn't see the problem.
It did always annoy me, that such generic words as "open", "close",
"read", "write" were sucked up by the Unix OS, the OS writers having
had first pickings from the global symbol name space.