You copied the Doc URL to your clipboard.

__attribute__((malloc)) function attribute

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

Note

This function attribute is a GNU compiler extension that is supported by the ARM compiler.

Example

void * Function_Attributes_malloc_0(int b) __attribute__ ((malloc));