J
john.chludzinski
I have an entire file stored in a string. The file is 2 columns of doubles (stored in ASCII, of course). The doubles are separated by an arbitrary number of spaces, maybe tabs too.
sscanf(file_bytes+offset, "%lf %lf", &x, &y) will return the number of "items" read, in this case 2 doubles.
I need to know how to increment "offset" to read the next line?
---John
PS> I looked in FAQs but didn't see anything to answer this question.
sscanf(file_bytes+offset, "%lf %lf", &x, &y) will return the number of "items" read, in this case 2 doubles.
I need to know how to increment "offset" to read the next line?
---John
PS> I looked in FAQs but didn't see anything to answer this question.