mirror of
https://github.com/Ladebeze66/Piscine42.git
synced 2026-11-09 13:17:16 +01:00
Piscine42
This commit is contained in:
23
C01/ex06/ft_strlen.c
Executable file
23
C01/ex06/ft_strlen.c
Executable file
@@ -0,0 +1,23 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* 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);
|
||||
}
|
||||
Reference in New Issue
Block a user