text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_strnequ.c                                       :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: iiasceri <marvin@42.fr>                    +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2017/12/31 17:13:53 by iiasceri          #+#    #+#             */
  /*   Updated: 2017/12/31 17:13:54 by iiasceri         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  int	ft_strnequ(char const *s1, char const *s2, size_t n)
  {
  	size_t i;
  
  	if (!s1 || !s2)
  		return (0);
  	i = 0;
  	while (i < n && s1[i] != '\0' && s2[i] != '\0')
  	{
  		if (s1[i] != s2[i])
  			return (0);
  		i++;
  	}
  	return (1);
  }
  