Synopsis: | There should only be one return statement in a function returning non-void and this should appear at the bottom of the function. There should be no return statement in a function returning void. |
Language: | C |
Severity Level: | 5 |
Category: | STATEMENTS |
Description: |
Structured programming recommends one-entry, one-exit for all functions, although there are occasionally good reasons when this must be relaxed. |