diff --git a/includes/lem_in.h b/includes/lem_in.h index 1f6e1f5..dbdfc79 100644 --- a/includes/lem_in.h +++ b/includes/lem_in.h @@ -6,7 +6,7 @@ /* By: tmaze +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/03/23 17:31:19 by tmaze #+# #+# */ -/* Updated: 2019/03/23 17:42:58 by tmaze ### ########.fr */ +/* Updated: 2019/03/26 17:08:38 by tmaze ### ########.fr */ /* */ /* ************************************************************************** */ diff --git a/srcs/lm_getparams.c b/srcs/get_path.c similarity index 65% rename from srcs/lm_getparams.c rename to srcs/get_path.c index 6545a83..ed7619f 100644 --- a/srcs/lm_getparams.c +++ b/srcs/get_path.c @@ -1,20 +1,28 @@ /* ************************************************************************** */ /* */ /* ::: :::::::: */ -/* lm_getparams.c :+: :+: :+: */ +/* get_path.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: tmaze +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ -/* Created: 2019/03/23 17:46:34 by tmaze #+# #+# */ -/* Updated: 2019/03/23 17:51:35 by tmaze ### ########.fr */ +/* Created: 2019/03/25 16:15:08 by tmaze #+# #+# */ +/* Updated: 2019/03/26 17:09:03 by tmaze ### ########.fr */ /* */ /* ************************************************************************** */ #include "lem_in.h" -int lm_getparams(t_lmdata *data) +int get_nb_nodes(t_lmdata *data) { - char *buff; - - while () + +} + +int get_path(t_lmdata *data, int nb_nodes) +{ + int parent[nb_nodes]; + char visited[nb_nodes]; + t_list *queue; + + queue = NULL; + ft_bzero(visited); }