Function ndpi_memcasecmp¶
- Defined in File ndpi_api.h
Function Documentation¶
-
int
ndpi_memcasecmp
(const void *s1, const void *s2, size_t n)¶ Performs a case-insensitive comparison of two memory regions
This function works similarly to memcmp() but performs case-insensitive comparison.
- s1 Pointer to the first memory region
- s2 Pointer to the second memory region
- n Number of bytes to compare
- Return
- < 0 if s1 is less than s2 in a case-insensitive comparison = 0 if s1 matches s2 in a case-insensitive comparison > 0 if s1 is greater than s2 in a case-insensitive comparison If s1 is NULL and s2 is not, returns -1 If s2 is NULL and s1 is not, returns 1 If both are NULL, returns 0