![]() |
![]() |
0601 | ![]() |
||||
![]() | |||||||
| Language extensions | REFERENCE - ISO:C90-5.1.2.2 Hosted environment | ||||||
The "main" function has been defined in a non-standard form. According to the ISO:C Standard, there are only 2 acceptable ways in which the 'main' function may be defined in a hosted environment:
/*PRQA S 2017 ++*/
void main(void) { /* Message 0601 */
/*...*/
}
Note that in a freestanding environment the name and type of the function called at program startup are implementation-defined.
MISRA C:2012 Rules applicable to message 0601:
| Rule-1.2 (Advisory) | Language extensions should not be used |
![]() | ||
| QA·C Source Code Analyser 8.1
MISRA C:2012 Compliance Module 1.0 © 2012 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index | Contents |