Files
42-LibUnit/real_tests/ft_strlen/03_large.c
2026-01-24 16:51:06 +01:00

26 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* 03_large.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: elagouch <elagouch@student.42lyon.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/01/24 15:38:17 by elagouch #+# #+# */
/* Updated: 2026/01/24 16:36:42 by elagouch ### ########.fr */
/* */
/* ************************************************************************** */
#include "../tests.h"
int test_large(void) {
size_t i;
char s[10000];
i = 0;
while (i < sizeof(s)) {
s[i] = ' ';
i++;
}
return (ft_strlen(s) == sizeof(s) + 1);
}