I'm reading a file to get some times into array. During debugging I found that pointer value is correct at the moment when I want to save it, meaning it is something xx:xx, x-es being numbers.
I'm usingwhere pos is my pointer and array is int [100][2]. When it tries to execute the command I get access violation error. Why is that? Maybe some other way to put hours in array's first and minutes in second column?Code:sscanf(pos,"%d:%d",array[n][0],array[n][1]);