I am trying to read the contents of a string inside a multidimensional array ... the problem is that when I do this, sscanf continues to read only the first character ...
In my line, I have the following:
A1+A2+A3+A4.
I want to read% c% d, I can read this if it was only A1, but when that happens, it reads only A1 ...
I did this to read only the first character:
if(sscanf(array[line][colum], "%c%d", &colum, %line) == 2){ printf("COL: %c, Line: %d", colum, line);
What can I do to read the entire line?
source share