What's the problem? Does the source file have a header? Include the header at the top of whatever source file you want to use it in (like the file that has your "int main()" function) and link the .c source file with the rest of your project and just call the function.