Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Conditional stream opening and 22.3?
#2
Quite simply, yes

The example you cite is no different to the example in the Guideline for !someCondition

However, of course, if the stream is closed before the subsequent opening, then that would be OK.
Posted by and on behalf of the MISRA C Working Group


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)