text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_strcmp.c                                        :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: szaghban <marvin@42.fr>                    +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2017/12/13 21:48:01 by szaghban          #+#    #+#             */
  /*   Updated: 2017/12/13 23:15:37 by szaghban         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  int		ft_strcmp(const char *s1, const char *s2)
  {
  	unsigned char	*ss1;
  	unsigned char	*ss2;
  	size_t			i;
  
  	ss1 = (unsigned char*)s1;
  	ss2 = (unsigned char*)s2;
  	i = 0;
  	while (ss1[i] && ss2[i] && ss1[i] == ss2[i])
  		i++;
  	if (!ss1[i] && !ss2[i])
  		return (0);
  	else
  		return ((int)(ss1[i] - ss2[i]));
  }
  