> > Also, the
> > test for name matching is not case sensitive, so both of the above calls
> > should return the same result.
> >
> > That is, on OS 3.5 (and possibly earlier, I didn't check) the return code
> > looks like this:
> >
> >       // See if it matches
> >       if (!StrCompare(nameP, libNameP)) {
> >            *refNumP = refNum;
> >            return 0;
> >       }
>
>  Note that, at least on OS 3.3, SysLibFind() DOES appear to be
>  case sensitive.
>
>   SysLibFind("Net.Lib", &AppNetRefnum) returns sysErrLibNotFound
>   SysLibFind("Net.lib", &AppNetRefnum) returns  0

OS 3.3 and 3.5 work the same way.  Either Bob made a mistake, or he understands
things way better than I can read them.  StrCompare does a case-sensitive
comparison.  StrCaselessCompare seems to be the one he's thinking of.

-- Keith



Reply via email to