text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_strcmp.c                                        :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: mghazari <mghazari@student.42.fr>          +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2016/12/27 05:54:00 by mghazari          #+#    #+#             */
  /*   Updated: 2016/12/27 05:54:02 by mghazari         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  int		ft_strcmp(const char *s1, const char *s2)
  {
  	int				i;
  	unsigned char	*c;
  	unsigned char	*d;
  
  	i = 0;
  	c = (unsigned char *)s1;
  	d = (unsigned char *)s2;
  	while (c[i] || d[i])
  	{
  		if (c[i] != d[i])
  			return (c[i] - d[i]);
  		i++;
  	}
  	return (0);
  }
  