init
This commit is contained in:
25
C/c01v1/ex06/ft_strlen.c
Normal file
25
C/c01v1/ex06/ft_strlen.c
Normal file
@ -0,0 +1,25 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_strlen.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2022/07/14 19:06:11 by cchauvet #+# #+# */
|
||||
/* Updated: 2022/07/15 12:03:56 by cchauvet ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
#include <unistd.h>
|
||||
|
||||
int ft_strlen(char *str)
|
||||
{
|
||||
int a;
|
||||
|
||||
a = 0;
|
||||
while (*str != 0)
|
||||
{
|
||||
a++;
|
||||
str++;
|
||||
}
|
||||
return(a);
|
||||
}
|
Reference in New Issue
Block a user