int ft_string_to_tab( int i, int j, int ac, char **av)
{
    int k;
    k = 0;
		while (av[1][i] != '\0')
		{
			if (k > 3)
			{
				j++;
				k = 0;
			}
			if (av[1][i] >= '1' && av[1][i] <= '4')
			{
				tab_bord[j][k] = av[1][i] - 48;
				k++;
			}
			i++;
		}
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: