I have used char *var = ".x_t"; int iIsValid = _stricmp(var, ".x_t");
Here I am expecting comparison result to be 0,but for var with value ".x_t" returns 32. NOTE: value of var varies but for example purpose I have hardcoded it.
One doubt I have here is string to be compared contains "_" ,is this really causing comparison failure?
stricmp throws warning as -warning C4996: 'stricmp': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _stricmp. I am using VS 2008