B
BartC
With the scanf() functions, is there any way of finding out how far it's got
scanning the input?
For example:
double x;
char *s="12.87 91.33";
sscanf(s,"%lf",&x);
This reads 12.87 into x; but how can I tell it's consumed 5 characters of
the input string?
scanning the input?
For example:
double x;
char *s="12.87 91.33";
sscanf(s,"%lf",&x);
This reads 12.87 into x; but how can I tell it's consumed 5 characters of
the input string?