I have a string : "pH=8.23" and I want to ignore the first three characters: "pH="
so I thought that :
char inData_pH;
char string_pH[8];
sstring(inData_pH, "%*3c %s", string_pH) // i.e. from inData_pH ignore the 3 characters and assign rest to string_pH
pH_val = atof(string_pH);
my sincere regrets. Has been a long week
Yes I meant sscanf:
char inData_pH;
char string_pH[8];
sscanf(inData_pH, "%*3c %s", string_pH) // i.e. from inData_pH ignore the 3 characters and assign rest to string_pH
pH_val = atof(string_pH);