1
0

fixed libft

This commit is contained in:
2024-03-14 16:19:34 +01:00
parent 4ce51959ed
commit 0289baf535
4 changed files with 11 additions and 16 deletions

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/30 18:15:57 by adjoly #+# #+# */
/* Updated: 2024/02/04 15:10:15 by adjoly ### ########.fr */
/* Updated: 2024/03/12 15:07:08 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -14,13 +14,10 @@
size_t ft_strlen(const char *s)
{
size_t i;
const char *tmp;
i = 0;
while (*s)
{
s++;
i++;
}
return (i);
tmp = s;
while (*tmp)
tmp++;
return (tmp - s);
}