piscine-bsq/srcs/main.c

30 lines
1.2 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: apago <apago@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/04/04 21:50:50 by tischmid #+# #+# */
/* Updated: 2023/04/05 17:14:36 by apago ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_string.h"
#include "printing.h"
#include "solution.h"
#include <stdio.h>
int main(void)
{
t_map map;
if (!read_fname("./assets/subject.map", &map))
return (ft_err("map error\n", 1));
solve(&map);
print_map(&map, 0);
free(map.data);
free(map.copy);
return (0);
}