Void blink (void);

Hello
sorry for my ignorance but in the attachinterrupt example (particle-doc-reference) the first line is: void blink (void); but what meaning - function does it have?
Best Regards
Valentino

This means that this function does not take any parameters and also does not return anything.
And since this has no implementation it’s only a forward declaration or function prototype to inform the rest of the code how to call the function before the compiler “sees” the actual implementation.

Grazie @ScruffR I wish you a good sunday
Valentino

1 Like