/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: tischmid +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/04/01 07:11:58 by tischmid #+# #+# */ /* Updated: 2023/04/02 18:30:05 by tischmid ### ########.fr */ /* */ /* ************************************************************************** */ #include "argparse.h" #include "dictparse.h" #include "ft_linked_list.h" #include "printing.h" #include int main(int argc, char **argv) { char *str_nbr; char *path; t_map_entry *map; if (!parse_args(argc, argv, &path, &str_nbr)) return (puterr("Error\n", 1)); map = ll_map_new_entry("about", "Dict for the data from the .dict file"); if (!parse_dict(path, map)) return (puterr("Dict Error\n", 2)); printf("%s\n", ll_map_get(map, "1000000")); ll_clear(map, 1); return (0); }