UtilLib
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_strlen.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: yantoine <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/11/07 10:18:42 by yantoine #+# #+# */
|
||||
/* Updated: 2023/11/09 12:31:17 by yantoine ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
#include "libft.h"
|
||||
|
||||
size_t ft_strlen(const char *c)
|
||||
{
|
||||
int index;
|
||||
|
||||
index = 0;
|
||||
while (c[index] != 0)
|
||||
index += 1;
|
||||
return (index);
|
||||
}
|
||||
Reference in New Issue
Block a user