[comp.sys.mac.programmer] Think C 4.0 Bugs

wrp@biochsn.acc.Virginia.EDU (William R. Pearson) (09/11/89)

	This is a public apology.  All of the bugs that I was experiencing
with Think C 4.0, including:

	strncmp("This", "This is a", 4);

were due to the fact that Think C 4.0 uses size_t for n in
strncmp(str1,str2,n);  size_t is a long, so:

	strncmp("This", "This is a", 4L);

works correctly.  In retrospect, I think that I am happy with this, but
it makes the confusion between 16 bit integers and long string lengths
more acute.  After I included the correct template files, e.g. <string.h>,
it was easy to catch all the mistakes, and everything started working
again.  I love that debugger too.

Bill Pearson