ALMOST2
This commit is contained in:
parent
8bfb047332
commit
e9bd8c3e6a
|
@ -94,7 +94,7 @@ CLR_RST = && : [m
|
||||||
run:
|
run:
|
||||||
@clear
|
@clear
|
||||||
$(YLW) ./$(NAME) "./dicts/numbers2.dict" 12345678 $(CLR_RST) $(SUCCESS)
|
$(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) "./dicts/numbers2.dict" 0 $(CLR_RST) $(SUCCESS)
|
||||||
$(YLW) ./$(NAME) $(CLR_RST) $(SUCCESS)
|
$(YLW) ./$(NAME) $(CLR_RST) $(SUCCESS)
|
||||||
$(YLW) ./$(NAME) 1 $(CLR_RST) $(SUCCESS)
|
$(YLW) ./$(NAME) 1 $(CLR_RST) $(SUCCESS)
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
|
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/04/02 20:26:44 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);
|
parts[idx] = malloc(sizeof(char) * MAX_LINE_LENGTH * 6);
|
||||||
ft_strcpy(parts[idx], triplet_word);
|
ft_strcpy(parts[idx], triplet_word);
|
||||||
if (size != 0)
|
if (size != 0)
|
||||||
ft_strcat(ft_strcat(parts[idx++], " "), thousands_power_word);
|
ft_strcat(ft_strcat(parts[idx], " "), thousands_power_word);
|
||||||
free(triplet_word);
|
free(triplet_word);
|
||||||
|
++idx;
|
||||||
}
|
}
|
||||||
parts[idx] = NULL;
|
parts[idx] = NULL;
|
||||||
return (1);
|
return (1);
|
||||||
|
|
Loading…
Reference in New Issue