42_C_PISCINE/Rush/Rush02/ex00/ft_printapc.c
Camille Chauvet 29ed24d567 init
2023-05-17 16:45:25 +00:00

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");
}