need some advices, which way is better
I am writting a strIgnoreCaseCmp module which performs the same basic function as strncmp() but ignore case when comparing two strings.
The function prototype is int strIgnoreCaseCmp(const char *s1,
const char *s2,
unsigned int n)
for the compare part, I can just call strncmp(), but for the ignoring case part, I am not sure if I should use strlwr in string.h, or I have to use strlen combine with tolower to change the case of each character in the string.
I didn't use strlwr before, do you think it is a better way?