I have a string that is written as follows:
^SYSINFO:2,3,0,3,1,,3
You will notice that there is one digit missing in the line, this may not always be the case. I use sscanf to scan the line and extract the last integer.
sscanf(response_c, "^SYSINFO:%*d,%*d,%*d,%*d,%*d,,%d", &networkattach_i);
How can I compensate for the digit that is currently missing, but may be written also?
The following does NOT work:
sscanf(response_c, "^SYSINFO:%*d,%*d,%*d,%*d,%*d,%*d,%d", &networkattach_i);