This commit is contained in:
Ladebeze66
2024-01-30 15:17:15 +01:00
parent ecbd62360c
commit 233d9d5cec
39 changed files with 17 additions and 16 deletions

BIN
parsing/ft_find_map_start.o Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
parsing/ft_map_check.o Normal file

Binary file not shown.

Binary file not shown.

BIN
parsing/ft_map_dimensions.o Normal file

Binary file not shown.

BIN
parsing/ft_parsing.o Normal file

Binary file not shown.

Binary file not shown.

View File

@@ -6,7 +6,7 @@
/* By: fgras-ca <fgras-ca@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/16 16:19:13 by fgras-ca #+# #+# */
/* Updated: 2024/01/30 13:55:56 by fgras-ca ### ########.fr */
/* Updated: 2024/01/30 15:15:52 by fgras-ca ### ########.fr */
/* */
/* ************************************************************************** */
@@ -24,9 +24,11 @@ bool read_map_line(int fd, char *buffer, ssize_t *bytes_read)
bool process_line(char **map_buffer, int *map_length, char *line)
{
ssize_t bytes_read;
size_t new_total_size;
bytes_read = ft_strlen(line);
*map_buffer = ft_realloc(*map_buffer, *map_length + bytes_read + 1);
new_total_size = *map_length + bytes_read + 1;
*map_buffer = ft_realloc(*map_buffer, new_total_size, *map_length);
if (!*map_buffer)
{
perror("Error reallocating memory for map buffer");

Binary file not shown.