rt/libft/ft_strnequ.c

21 lines
1.0 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strnequ.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: scebula <scebula@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/11/26 10:55:16 by scebula #+# #+# */
/* Updated: 2015/11/26 10:56:03 by scebula ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_strnequ(char const *s1, char const *s2, size_t n)
{
if (ft_strncmp(s1, s2, n) == 0)
return (1);
return (0);
}