This function attribute specifies function parameters that are not supposed to be null pointers. This enables the compiler to generate a warning on encountering such a parameter.
Syntax
__attribute__((nonnull[(arg-index, ...)]))
Where [(arg-index,
...)] denotes an optional argument index list.
If no argument index list is specified, all pointer arguments are marked as
nonnull.
Note:
The argument index list is 1-based, rather than 0-based.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.