AutosarC++18_03-M18.0.3¶
The library functions abort, exit, getenv and system from library <cstdlib> shall not be used
Required inputs: IR
| Level | required |
|---|---|
| Target | implementation |
| Enforcement | automated |
Rationale
The use of these functions leads to implementation-defined behaviour.
Example
#include <cstdlib>
void f ( )
{
exit ( 0 ); // Non-compliant
}
Note
For legal reasons, this rule’s description is not part of the public documentation.