Create another .c file and use that. Make sure nothing is in main.c file, especially header files or it won't compile.
Or
create your own header files by creating a file with .h file extension and in main.c call the .h file by #include "name.h"
Your own .h file can store functions and data etc