Thank you so much @brax and @jcl!! This was really helpful, however I'm getting an error message saying: "'function' undeclared identifier".

I'm probably missing something important here, that message appears when I call the function from a new script and I have included the #include <test.c> statement.