change Makefile and add day 2

This commit is contained in:
2025-12-03 17:04:21 +01:00
parent bc0d448f75
commit 786310898d
133 changed files with 2983 additions and 10 deletions

22
2025/2/libft/ft_strlen.c Executable file
View File

@ -0,0 +1,22 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tomoron <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/30 12:34:41 by tomoron #+# #+# */
/* Updated: 2023/10/31 14:53:10 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
size_t ft_strlen(const char *str)
{
unsigned int n;
n = 0;
while (str[n])
n++;
return (n);
}