/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: cchauvet = 2 && argc <= 3)) { write (1, "Error\n", 6); return (0); } if (argc == 3) { i = 2; if (ft_dict_validator(argv[1]) == 0) return (0); dict = ft_dictionnary_reader(argv[1]); } else dict = ft_dictionnary_reader(PATH); if (dict == NULL || ft_print_errors(argv[i]) == 0) return (0); tab = ft_decompose(argv[i]); ft_printapc(tab, dict); free(tab); free(dict); }