The _memicmp function compares the first count characters of the two buffers buf1 and buf2 byte by byte. The comparison is not case-sensitive.
If either buf1 or buf2 is a null pointer, this function invokes an invalid parameter handler, as described in Parameter Validation. If execution is allowed to continue, the function returns _NLSCMPERROR and sets errno to EINVAL.
_memicmp uses the current locale for locale-dependent behavior; _memicmp_l is identical except that it uses the locale passed in instead. For more information, see Locale.