/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_check_not_found.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: joelecle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/19 19:26:27 by joelecle #+# #+# */ /* Updated: 2020/02/19 19:26:28 by joelecle ### ########lyon.fr */ /* */ /* ************************************************************************** */ #include #include #include #include int8_t ft_check_not_found(const char *path) { int fd; if ((fd = open(path, O_RDONLY)) < 0) return (-1); close(fd); return (0); }