started dev on parser

defined data structure WIP
This commit is contained in:
Tanguy MAZE
2019-03-23 18:04:19 +01:00
parent a6e27627c6
commit 808dd8c403
6 changed files with 83 additions and 0 deletions

20
srcs/lm_getparams.c Normal file
View File

@@ -0,0 +1,20 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* lm_getparams.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/03/23 17:46:34 by tmaze #+# #+# */
/* Updated: 2019/03/23 17:51:35 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
#include "lem_in.h"
int lm_getparams(t_lmdata *data)
{
char *buff;
while ()
}

20
srcs/lm_initdata.c Normal file
View File

@@ -0,0 +1,20 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* lm_initdata.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/03/23 17:43:34 by tmaze #+# #+# */
/* Updated: 2019/03/23 17:45:09 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
#include "lem_in.h"
void lm_initdata(t_lmdata *data)
{
data->nbants = 0;
data->nodes = NULL;
data->adj = NULL;
}