move here

This commit is contained in:
root
2025-10-12 15:47:22 +00:00
commit 86e3373d6f
9 changed files with 184 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lfirmin <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/14 21:11:59 by lfirmin #+# #+# */
/* Updated: 2024/02/15 07:37:57 by lfirmin ### ########.fr */
/* */
/* ************************************************************************** */
int ft_strlen(char *str)
{
int n;
n = 0;
while (str[n] != '\0')
{
n++;
}
return (n);
}
/*#include <stdio.h>
int main()
{
char *str;
int n;
str = "Hello world !";
n = ft_strlen(str);
printf("%d\n", n);
}*/