i want my program to compare strings, but i don't want it to consider the case of the letters (uppercase / lowercase).
e.g. motor and MOtor should be considered the same.
i.e. motor=MOtor
or
strcmp(motor,MOtor) should be 0.
Six answers:
2011-10-14 02:53:44 UTC
#include
#include
static int strcasecmp(const char *s1, const char *s2)