head,lib
I write my own head.h file:
#include <stdio.h>
....
then write a function:
/*filename: fuc.c */
int fun(){
printf ("Hello,world\n");
}
saved in directory lib/fuc.c
in main.c:
/*main.c*/
int main(){
fuc();
return 0;
}
they look like this :
main.c
lib/fun.c
include/head.h
and now,how to compile these files correctly?
|