I'm using DevC++ and im trying to call a function that is written in another '.c' file that is included in the project
umm heres an example of what im trying to do.
~MAIN.C~
~FUNC.C~Code:#include <stdio.h> #include "func.c" int main() { callprint("hello world!"); getchar(); return 0; }//end of main
Code:#include <stdio.h> void callprint(char text[]) { printf(text); }
it keeps comming up with multi definition of callprint(char text[])