mirror of
https://github.com/Ladebeze66/Piscine42.git
synced 2025-12-16 05:58:07 +01:00
24 lines
989 B
C
Executable File
24 lines
989 B
C
Executable File
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_strlen.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: fgras-ca <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2022/12/07 11:01:26 by fgras-ca #+# #+# */
|
|
/* Updated: 2022/12/07 12:40:42 by fgras-ca ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
int ft_strlen(char *str)
|
|
{
|
|
int a;
|
|
|
|
a = 0;
|
|
while (str[a] != '\0')
|
|
{
|
|
a++;
|
|
}
|
|
return (a);
|
|
}
|