/
tasmity
/
fillit
Обзор
Документация
Войти
/
tasmity
/
fillit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
libft/ft_strcmp.c
23 строки
1 KB
tasmity
add fillit
13 дек 2019, 22:45
13 дек 2019, 22:45
39c74f6
Код
Авторство
О чём код?
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strcmp.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: orubin <orubin@student.42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/09/07 16:59:44 by orubin #+# #+# */ /* Updated: 2019/12/03 22:32:55 by tasmity ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" int ft_strcmp(const char *s1, const char *s2) { int i; i = 0; while (s1[i] == s2[i] && s1[i] && s2[i]) i++; return ((unsigned char)s1[i] - (unsigned char)s2[i]); }