style: Changing the strchr to strchr_index
This commit is contained in:
parent
9b8c3b203c
commit
8445a8c956
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* 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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue