You copied the Doc URL to your clipboard.

Arm Compiler armclang Reference Guide : __attribute__((malloc)) function attribute

__attribute__((malloc)) function attribute

This function attribute indicates that the function can be treated like malloc and the compiler can perform the associated optimizations.

Example

void * foo(int b) __attribute__((malloc));
Was this page helpful? Yes No