Given the following lines:
char szInline[80];
char szDescription[80] = { NULL };
float fCost = 0;
sscanf (szInline, "%80[^,], %f", szDescription, &fCost);
What does the %80[^,] do?
Read at most 80 chars up to the next , comma.
Btw, the szDescription buffer is too small by 1.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With