I have the following line in my code, which is supposed to skip commas
and white space and to read a comma seperated value string into the
appropriate variables:
sscanf(temp.c_s tr(),
"%f%*,%d%*,%f%* ,%d%*,%d%*,%f%* ,%f%*,%f%*,%f%* ,%d%*,%f%*,%d%* ,%d", &dt,
&ti, &lsp, &lst, &lsv, &o, &h, &l, &bd, &bv, &ak, &av, &cv) ;
I suspect the format specifiers are incorrect, since I am not reading
the values correctly from the string - could anyone please suggest the
correct format specifiers to :
1). Igone commas
2). skip any white space between the values/commas
and white space and to read a comma seperated value string into the
appropriate variables:
sscanf(temp.c_s tr(),
"%f%*,%d%*,%f%* ,%d%*,%d%*,%f%* ,%f%*,%f%*,%f%* ,%d%*,%f%*,%d%* ,%d", &dt,
&ti, &lsp, &lst, &lsv, &o, &h, &l, &bd, &bv, &ak, &av, &cv) ;
I suspect the format specifiers are incorrect, since I am not reading
the values correctly from the string - could anyone please suggest the
correct format specifiers to :
1). Igone commas
2). skip any white space between the values/commas
Comment