removing the libft of rparodi
This commit is contained in:
parent
0391323626
commit
be6038dcc8
523 changed files with 724 additions and 3336 deletions
24
libft/tests/ft_string/ft_mem/tests_free_2d.c
Normal file
24
libft/tests/ft_string/ft_mem/tests_free_2d.c
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* tests_free_2d.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: bgoulard <bgoulard@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/28 23:42:53 by bgoulard #+# #+# */
|
||||
/* Updated: 2024/05/28 23:55:41 by bgoulard ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "ft_string.h"
|
||||
|
||||
// we assume that free_2d is working,
|
||||
// checking if memory is freed properly is not possible in this context
|
||||
int test_free_2d(void)
|
||||
{
|
||||
char **tab;
|
||||
|
||||
tab = ft_split("Hello World", ' ');
|
||||
ft_free_2d((void **)tab);
|
||||
return (0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue