From 10b4feb67c8af2b099dabd66f948b02e180bae0d Mon Sep 17 00:00:00 2001 From: Cabergs Charles Date: Mon, 7 Oct 2019 11:35:51 +0200 Subject: Normed everything Created a few dummy functions to resolve functions having more than 25 lines. --- ft_strcmp.c | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'ft_strcmp.c') diff --git a/ft_strcmp.c b/ft_strcmp.c index 8a86b2a..df1a2e2 100644 --- a/ft_strcmp.c +++ b/ft_strcmp.c @@ -1,9 +1,21 @@ -int ft_strcmp(const char *s1, const char *s2) +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_strcmp.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2019/10/07 10:16:07 by cacharle #+# #+# */ +/* Updated: 2019/10/07 10:16:19 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + +int ft_strcmp(const char *s1, const char *s2) { - int i; + int i; - i = 0; - while (s1[i] && s2[i] && s1[i] == s2[i]) - i++; - return ((unsigned char)s1[i] - (unsigned char)s2[i]); + i = 0; + while (s1[i] && s2[i] && s1[i] == s2[i]) + i++; + return ((unsigned char)s1[i] - (unsigned char)s2[i]); } -- cgit