Does someone have source for this function? I think it is avaiable under Unix, but I’m using Windows.
Of course I tried google first, but haven’t found solution, also function from “strncasecmp.c” takes only 2 instead of 3 parameters.
Can’t provide much more information, as it is not my code.
That’s how he use it:
int _tcsnicmp(const char *c1, const char *c2, int l) { return strncasecmp(c1,c2,l); }
EDIT After you have updated your question it looks like you’re doing a backport from something that was original written for Windows, than ported to UNIX and now back to Windows?!?.
_tcsnicmpis actually the function to call on Windows (see my link above). There is no point in redirecting it back tostrncasecmp(or your own version thereof) on Windows.Under Windows (using Microsoft Compilers at least, the platform is not really the issue here), you can use the strnicmp family of functions instead. If you still need the sourcecode either google for it, as others have suggested or look into the CRT source code that is distributed with Visual Studio and installed under “\VC\crt\src”.