diff --git a/ex00/Makefile b/ex00/Makefile index 97246be..a84f661 100644 --- a/ex00/Makefile +++ b/ex00/Makefile @@ -94,7 +94,7 @@ CLR_RST = && :  run: @clear $(YLW) ./$(NAME) "./dicts/numbers2.dict" 12345678 $(CLR_RST) $(SUCCESS) - $(YLW) ./$(NAME) "./dicts/numbers2.dict" 12345678 $(CLR_RST) $(SUCCESS) + $(YLW) ./$(NAME) "./dicts/numbers2.dict" 123456 $(CLR_RST) $(SUCCESS) $(YLW) ./$(NAME) "./dicts/numbers2.dict" 0 $(CLR_RST) $(SUCCESS) $(YLW) ./$(NAME) $(CLR_RST) $(SUCCESS) $(YLW) ./$(NAME) 1 $(CLR_RST) $(SUCCESS) diff --git a/ex00/ft_ntow.c b/ex00/ft_ntow.c index 8184e0a..ed104b2 100644 --- a/ex00/ft_ntow.c +++ b/ex00/ft_ntow.c @@ -6,7 +6,7 @@ /* By: tischmid +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/04/02 20:26:44 by tischmid #+# #+# */ -/* Updated: 2023/04/02 23:21:07 by tischmid ### ########.fr */ +/* Updated: 2023/04/02 23:34:29 by tischmid ### ########.fr */ /* */ /* ************************************************************************** */ @@ -113,8 +113,9 @@ int set_parts(char **parts, char **triplets, char *k_power, t_map_entry *map) parts[idx] = malloc(sizeof(char) * MAX_LINE_LENGTH * 6); ft_strcpy(parts[idx], triplet_word); if (size != 0) - ft_strcat(ft_strcat(parts[idx++], " "), thousands_power_word); + ft_strcat(ft_strcat(parts[idx], " "), thousands_power_word); free(triplet_word); + ++idx; } parts[idx] = NULL; return (1);