move here
This commit is contained in:
@@ -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);
|
||||
}*/
|
||||
Reference in New Issue
Block a user