From 8445a8c9565930d5b7c3623656db4f71dd1c84f7 Mon Sep 17 00:00:00 2001 From: Raphael Date: Sun, 21 Dec 2025 00:18:11 +0100 Subject: [PATCH] style: Changing the strchr to strchr_index --- get_next_line.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/get_next_line.c b/get_next_line.c index b4c2928..a563dcc 100644 --- a/get_next_line.c +++ b/get_next_line.c @@ -6,7 +6,7 @@ /* By: rparodi +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/11/18 17:12:02 by rparodi #+# #+# */ -/* Updated: 2023/11/22 13:31:13 by rparodi ### ########.fr */ +/* Updated: 2025/12/20 23:59:09 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ @@ -21,7 +21,7 @@ char *ft_check(char *memory, int fd) buffer = (char *)malloc(sizeof(char) * (BUFFER_SIZE + 1)); if (!buffer) return (NULL); - while (ft_strchr(memory, '\n') <= 0 && bytescopy) + while (ft_strchr_index(memory, '\n') <= 0 && bytescopy) { bytescopy = read(fd, buffer, BUFFER_SIZE); if (bytescopy == -1)