void ft_parser(char *file, t_env *e) { int fd; if ((fd = open(file, O_RDONLY)) == -1) exit(ft_perror("Le fichier est introuvable.")); ft_getsize(e, fd); ft_getmap(e, fd); close(fd); }
t_info *ft_getinfos(char *map1D) { t_info *info; info = malloc(sizeof (t_info)); if (info == NULL) ft_putstr("Erreur: ft_getinfos return (-1);\n"); info->map = ft_getmap(map1D); map1D = map1D; return (info); }