I have two postcodes char* that I want to compare, ignoring case.
Is there a function to do this?
Or do I have to loop through each use the tolower func
As others have stated, there is no portable function that works on all systems. You can partially circumvent this with simple ifdef:
#include
#ifdef _WIN32
#include
#define strcasecmp _stricmp
#else // assuming POSIX or BSD compliant system
#include
#endif
int main() {
printf("%d", strcasecmp("teSt", "TEst"));
}