32 lines
1.1 KiB
C
32 lines
1.1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_printapc.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2022/07/31 19:14:04 by cchauvet #+# #+# */
|
|
/* Updated: 2022/07/31 19:21:42 by cchauvet ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "rush02.h"
|
|
|
|
void ft_printapc(char **tab, t_number *dict)
|
|
{
|
|
int i;
|
|
int j;
|
|
|
|
i = 0;
|
|
while (tab[i][0] != '\0')
|
|
{
|
|
j = 0;
|
|
while (ft_strcmp(tab[i], dict[j].nbr) != 0)
|
|
j++;
|
|
ft_putstr(dict[j].apc);
|
|
ft_putstr(" ");
|
|
i++;
|
|
}
|
|
ft_putstr("\n");
|
|
}
|