removing the libft of rparodi
This commit is contained in:
parent
0391323626
commit
be6038dcc8
523 changed files with 724 additions and 3336 deletions
26
libft/tests/ft_string/ft_mem/tests_len_2d.c
Normal file
26
libft/tests/ft_string/ft_mem/tests_len_2d.c
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* tests_len_2d.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: bgoulard <bgoulard@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/29 00:11:07 by bgoulard #+# #+# */
|
||||
/* Updated: 2024/05/29 00:15:46 by bgoulard ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "ft_string.h"
|
||||
|
||||
int test_len_2d(void)
|
||||
{
|
||||
char *arr2d[4];
|
||||
|
||||
arr2d[0] = "Hello";
|
||||
arr2d[1] = "World";
|
||||
arr2d[2] = "!";
|
||||
arr2d[3] = NULL;
|
||||
if (ft_len_2d((const void *const *)arr2d) != 3)
|
||||
return (1);
|
||||
return (0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue