Using Extern Definition and Extern Function blocks to add a C function to your diagram

Embed lets you easily convert a C function into an Embed block and add it to the User Block menu. To convert a C function, you use the Extern Definition and Extern Function blocks. To add the newly-created Embed block to the User Block menu, you include it in the Addons list under Edit > Preferences. An online video demonstrates these steps.