text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_strcmp.c                                        :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: knaumov <marvin@42.fr>                     +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2018/09/10 12:49:00 by knaumov           #+#    #+#             */
  /*   Updated: 2018/10/03 17:00:07 by knaumov          ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  int		ft_strcmp(const char *s1, const char *s2)
  {
  	int i;
  
  	i = 0;
  	while (s1[i] == s2[i])
  	{
  		if ((s1[i] == '\0') && (s2[i] == '\0'))
  			return (0);
  		++i;
  	}
  	return ((unsigned char)s1[i] - (unsigned char)s2[i]);
  }
  