Last development push

This commit is contained in:
2025-12-09 19:57:51 +01:00
parent a7f7d77bf9
commit 5e08fc76ef
25 changed files with 764 additions and 195 deletions

View File

@@ -3,10 +3,10 @@
/* ::: :::::::: */
/* get_next_line.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aortigos <aortigos@student.42malaga.com> +#+ +:+ +#+ */
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/15 18:37:44 by aortigos #+# #+# */
/* Updated: 2024/03/15 19:31:56 by aortigos ### ########.fr */
/* Updated: 2025/12/09 19:21:50 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
@@ -31,6 +31,8 @@ char *ft_read_to_left_str(int fd, char *left_str)
return (NULL);
}
buff[rd_bytes] = '\0';
if (!left_str)
left_str = ft_strdup(""); // o malloc(1) + '\0'
left_str = ft_strjoin(left_str, buff);
}
free(buff);

View File

@@ -3,10 +3,10 @@
/* ::: :::::::: */
/* ft_strchr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aortigos <aortigos@student.42malaga.com> +#+ +:+ +#+ */
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/09/21 17:16:15 by aortigos #+# #+# */
/* Updated: 2023/10/12 15:15:10 by aortigos ### ########.fr */
/* Updated: 2025/12/09 19:12:12 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
@@ -16,6 +16,8 @@ char *ft_strchr(const char *str, int c)
{
size_t i;
if (!str)
return (NULL);
i = 0;
while (str[i] != '\0')
{