Paul,
If you're using fscanf there presumably isn't a terminating zero,
The terminating zero was ment in regard to the formatting string.
The problem is that (f|s)scanf will simply ignore any part it cannot match
to the provided format string. And in my case that just doesn't work.
Of course whether this is worthwhile will depend on the details, eg
whether you
want to simply ignore and/or complain about badly formed lines, or whether you
want to abort the whole reading.
I have not considered trying to find the end of a badly-formatted (part of
a) line so I can continue reading the next string. So, aborting - or
rather terminating the scanning for more strings - on a "badly-formatted"
line it is.
I'm already considering a (better) way to check if I have an unrecognised formatting string, or if the target is actually badly formatted.
It doesn't change anything to the question though - can I tell (f|s)scanf to force a full matching of the formatting string (upto its terminating zero) ? Other than the kludges I've mentioned I mean.
Regards,
Rudy Wieser
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)