fprintf->ft_printf_fd
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user