C Programming/C Reference/nonstandard/strncasecmp

C programming language offers a function called strncasecmp that compares the first n characters of a string with the other irrespective of the case of characters. strncasecmp is found in string.h header file.

syntax
The return value of this function is same as that of strcasecmp i.e it returns 0 if f1 and f2 are equal, a positive integer if f1 is found greater than f2 or a negative integer if f1 is found less than f2.