/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/08/28 11:24:52 by ljiriste #+# #+# */
-/* Updated: 2023/09/11 18:44:28 by ljiriste ### ########.fr */
+/* Updated: 2023/10/11 18:16:37 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
t_list *new_ft_node(int fd);
t_list *ft_lstnew(void *content);
void *ft_memmove(void *dest, const void *src, size_t n);
-void ft_strncat_alloc(char **dest, char *src, int n);
+void ft_strncat_alloc(char **dest, const char *src, int n);
char *get_next_line(int fd);
/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/09/11 13:36:53 by ljiriste #+# #+# */
-/* Updated: 2023/09/11 15:22:45 by ljiriste ### ########.fr */
+/* Updated: 2023/10/11 15:42:18 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdlib.h> // malloc etc.
#include "get_next_line.h"
-// This function may be useful enough to add to Libft
-void ft_strncat_alloc(char **dest, char *src, int n)
+//This function may be useful enough to add to Libft
+/* Functions like ft_strncat but reallocates dest to
+ make sure it is large enough */
+void ft_strncat_alloc(char **dest, const char *src, int n)
{
int size;
char *temp;