aboutsummaryrefslogtreecommitdiff
path: root/ft_strncmp.c
diff options
context:
space:
mode:
authorCabergs Charles <cacharle@w-r4-p5.s19.be>2019-10-07 11:35:51 +0200
committerCabergs Charles <cacharle@w-r4-p5.s19.be>2019-10-07 11:35:51 +0200
commit10b4feb67c8af2b099dabd66f948b02e180bae0d (patch)
treee97d3d4701a79ac2087534dd350225e556127a76 /ft_strncmp.c
parent9a2b208985ac7d4644c718ada74770b98eeb4598 (diff)
downloadlibft-10b4feb67c8af2b099dabd66f948b02e180bae0d.tar.gz
libft-10b4feb67c8af2b099dabd66f948b02e180bae0d.tar.bz2
libft-10b4feb67c8af2b099dabd66f948b02e180bae0d.zip
Normed everything
Created a few dummy functions to resolve functions having more than 25 lines.
Diffstat (limited to 'ft_strncmp.c')
-rw-r--r--ft_strncmp.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/ft_strncmp.c b/ft_strncmp.c
index 0f24a1e..7246d5b 100644
--- a/ft_strncmp.c
+++ b/ft_strncmp.c
@@ -1,8 +1,20 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_strncmp.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2019/10/07 10:27:34 by cacharle #+# #+# */
+/* Updated: 2019/10/07 10:27:59 by cacharle ### ########.fr */
+/* */
+/* ************************************************************************** */
+
#include <string.h>
-int ft_strncmp(const char *s1, const char *s2, size_t n)
+int ft_strncmp(const char *s1, const char *s2, size_t n)
{
- size_t i;
+ size_t i;
if (n == 0)
return (0);