text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_strncmp.c                                       :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: msymkany <marvin@42.fr>                    +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2016/11/23 20:47:31 by msymkany          #+#    #+#             */
  /*   Updated: 2016/12/06 21:57:02 by msymkany         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  int		ft_strncmp(const char *s1, const char *s2, size_t n)
  {
  	if (n == 0)
  		return (0);
  	while (*s1 && *s1 == *s2 && --n)
  	{
  		s1++;
  		s2++;
  	}
  	return (*(unsigned char *)s1 - *(unsigned char *)s2);
  }
  