ft_memcmp - kibotrel/42-Libft GitHub Wiki

int	ft_memcmp(const void *s1, const void *s2, size_t n)

Description :

Compares the first n bytes in given memory areas s1 and s2.

Return Value :

Returns 0 if both memory areas are identical or the result of *s1 - *s2, the first different bytes encountered.

Source code