/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* check_args.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: tmaze +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/05/22 13:34:11 by tmaze #+# #+# */ /* Updated: 2019/05/22 13:41:20 by tmaze ### ########.fr */ /* */ /* ************************************************************************** */ #include "corewar.h" int check_file(char *path) { char *ext; return (path && (ext = ft_strrchr(path, '.')) && ft_strequ(ext, ".cor")); }