IT WORKS !
functionning ./lem_in that can read maps and display ants path still need to clean leaks still need remove debug info
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2019/03/27 14:56:55 by tmaze #+# #+# */
|
||||
/* Updated: 2019/04/09 14:32:04 by tmaze ### ########.fr */
|
||||
/* Updated: 2019/04/09 19:04:33 by tmaze ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -14,13 +14,14 @@
|
||||
|
||||
t_ind **lst_indinit(t_lmdata *data)
|
||||
{
|
||||
data->adj = (t_ind**)ft_memalloc(sizeof(t_ind*) * data->nb_nodes)
|
||||
data->adj = (t_ind**)ft_memalloc(sizeof(t_ind*) * data->nb_nodes);
|
||||
return (data->adj);
|
||||
}
|
||||
|
||||
int lst_indadd_link(t_lmdata *data, int n1, int n2)
|
||||
{
|
||||
return (lst_indadd(&(data->adj[n1]), n2) && lst_indadd(&(data->adj[n2]), n1));
|
||||
return (lst_indadd(&(data->adj[n1]), n2) && lst_indadd(&(data->adj[n2])
|
||||
, n1));
|
||||
}
|
||||
|
||||
t_ind *lst_indadd(t_ind **lst, int ind)
|
||||
|
Reference in New Issue
Block a user