Archived
1
0
This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
FDF/printf/ft_strlen.c

24 lines
1003 B
C
Raw Permalink Normal View History

2023-12-12 13:28:15 +01:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
2024-01-04 16:36:32 +01:00
/* ft_strlen.c :+: :+: :+: */
2023-12-12 13:28:15 +01:00
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
2024-01-04 16:36:32 +01:00
/* Created: 2023/10/30 18:15:57 by adjoly #+# #+# */
/* Updated: 2023/11/20 15:51:51 by adjoly ### ########.fr */
2023-12-12 13:28:15 +01:00
/* */
/* ************************************************************************** */
2024-01-04 16:36:32 +01:00
#include "ft_printf.h"
2023-12-12 13:28:15 +01:00
2024-01-04 16:36:32 +01:00
size_t ft_strlen(const char *s)
{
int i;
2023-12-12 13:28:15 +01:00
2024-01-04 16:36:32 +01:00
i = 0;
while (s[i])
i++;
return (i);
}