Hello! sorry for the late answer!
Here it is
[no full source code please]
for (int i = 0; i < H; i++)
{
char LINE[201];
scanf("%[^\n]", LINE); fgetc(stdin);
line = ft_split(LINE, ' ');//function to take of the space character between the numbers, and to arrange them in a double array
for (int j = 0; j < W; j++)
map[i][j] = atoi(line[j]);
}