libft
Functions
ft_strnequ.c File Reference
#include "libft.h"
+ Include dependency graph for ft_strnequ.c:

Go to the source code of this file.

Functions

int ft_strnequ (char const *s1, char const *s2, size_t n)
 Checks that two strings are unequal. More...
 

Function Documentation

◆ ft_strnequ()

int ft_strnequ ( char const *  s1,
char const *  s2,
size_t  n 
)

Checks that two strings are unequal.

Lexicographical comparison between s1 and s2 up ton characters or until a '\0' is reached.

Parameters
s1The first string to be compared.
s2The second string to be compared.
nThe maximum number of characters to be compared.
Returns
1 or 0 according to if the 2 strings are identical or not.

Definition at line 26 of file ft_strnequ.c.