42-archive/traceroute/libft/srcs/str/ft_strnequ.c
2017-10-08 17:57:08 +02:00

18 lines
1,012 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strnequ.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/03 14:58:32 by jhalford #+# #+# */
/* Updated: 2016/11/03 15:02:36 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_strnequ(char const *s1, char const *s2, size_t n)
{
return (ft_strncmp(s1, s2, n) == 0);
}