28-02-2019, 10:55 AM
The document MISRA:C Addendum 3 classifies the CERT C rule FIO34-C as NOT COVERED by MISRA (Coverage is None/None)
However, the condition detailed in this rule FIO34-C seems to be fully covered by MISRA rule 22.7
FIO34-C: Distinguish between characters read from a file and EOF or WEOF
MISRA C:2012 Amendment 1, Rule 22.7: The macro EOF shall only be compared with the unmodified return value from any Standard Library function capable of returning EOF
Is that correct?
However, the condition detailed in this rule FIO34-C seems to be fully covered by MISRA rule 22.7
FIO34-C: Distinguish between characters read from a file and EOF or WEOF
MISRA C:2012 Amendment 1, Rule 22.7: The macro EOF shall only be compared with the unmodified return value from any Standard Library function capable of returning EOF
Is that correct?
<t></t>