There will be some library function whose return values are hardly taken care. Best example would be printf.
During programming, we never catch its return value.
Similar to printf, can I ignore sscanf function return value?
Please advise.
Juganoo
There will be some library function whose return values are hardly taken care. Best example would be printf.
During programming, we never catch its return value.
Similar to printf, can I ignore sscanf function return value?
Please advise.
Juganoo
Hi,
>If n == 1, then you should not then go and use the result in b, because nothing will be there.
Not sure, but i think...
n == 1, so we assume a is converted, and b encounterd problem. How abt a encoutered problem first, b is converted? Will n still be 1? If yes, we can only test for n==0 for any error or n==2 for success.
Life is difficult...
>How abt a encoutered problem first, b is converted?
This won't happen, if the conversion for a cannot be completed then sscanf returns EOF because an error occured before any conversions were made. Both a and b will remain indeterminate.
-Prelude
My best code is written with the delete key.