Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!haven!uvaarpa!hudson!biochsn!wrp From: wrp@biochsn.acc.Virginia.EDU (William R. Pearson) Newsgroups: comp.sys.mac.programmer Subject: Think C 4.0 Bugs Message-ID: <1985@hudson.acc.virginia.edu> Date: 10 Sep 89 19:47:59 GMT Sender: news@hudson.acc.virginia.edu Reply-To: wrp@biochsn (William R. Pearson) Organization: University of Virginia, Charlottesville Lines: 18 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. , it was easy to catch all the mistakes, and everything started working again. I love that debugger too. Bill Pearson