At this point, I would suggest post a whole program.
> it's storing the image kind of blocky. any thoughts?
Because sscanf doesn't work it's way through a string in the same way that fscanf...
Type: Posts; User: Salem
At this point, I would suggest post a whole program.
> it's storing the image kind of blocky. any thoughts?
Because sscanf doesn't work it's way through a string in the same way that fscanf...
All I can suggest is add debug prints (or use a debugger) and step through the code.
There isn't anything obviously wrong with what you've posted so far.
And what is the format of the image file?
Post a couple of rows.
for(i=0; i < row && !feof(fpl); i++)
{
for(j=0; j < col && !feof(fpl); j++)
{
if (...