fprintf->ft_printf_fd

This commit is contained in:
2024-04-23 16:42:13 +02:00
parent b7755111f6
commit 905bbc659b
7 changed files with 21 additions and 21 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/05 17:31:53 by marde-vr #+# #+# */
/* Updated: 2024/04/18 20:48:54 by marde-vr ### ########.fr */
/* Updated: 2024/04/23 16:41:42 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -16,9 +16,9 @@ int is_fd_open(int fd)
{
if (fcntl(fd, F_GETFL) == -1)
{
fprintf(stderr, "%d:closed\n", fd);
ft_printf_fd(2, "%d:closed\n", fd);
return (0);
}
fprintf(stderr, "%d:open\n", fd);
ft_printf_fd(2, "%d:open\n", fd);
return (1);
}