Main Content
MISRA C:2023 Rule 21.8
The Standard Library termination functions of <stdlib.h>
shall
not be used
Since R2024a
Description
Rule Definition
The Standard Library termination functions of <stdlib.h>
shall not be
used.
Rationale
Using these functions can cause undefined and implementation-defined behaviors.
Polyspace Implementation
Polyspace® flags the use of the abort
,
exit
, _Exit
, or quick_exit
functions that are defined in <stdlib.h>
.
If these functions are user-defined, Polyspace does not flag them.
Troubleshooting
If you expect a rule violation but do not see it, refer to Diagnose Why Coding Standard Violations Do Not Appear as Expected.
Examples
Check Information
Group: Standard Libraries |
Category: Required |
AGC Category: Required |
Version History
Introduced in R2024a