4.7.2 Function Attributes

The compiler keyword __attribute__() allows you to specify special attributes of functions. Place inside the parentheses following this keyword a comma-separated list of the relevant attributes, for example:

__attribute__((weak))

The attribute can be placed anywhere in the object’s definition, but is usually placed as in the following example.

char __attribute__((weak)) input(int mode);
char input(int mode) __attribute__((weak));