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.
pipex/libft/str/ft_strlen.c

24 lines
1022 B
C
Raw Permalink Normal View History

2024-04-11 14:02:42 +02:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/30 18:15:57 by adjoly #+# #+# */
/* Updated: 2024/03/12 15:07:08 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#include "../libft.h"
size_t ft_strlen(const char *s)
{
const char *tmp;
tmp = s;
while (*tmp)
tmp++;
return (tmp - s);
}