版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/luoganttcc/article/details/88580723
test.h
void hello(void)
{
printf("hello world\n");
}
p.c
#include <stdio.h>
#include "test.h"
int main()
{
hello();
return 0;
}
gcc p.c
./a.out
hello world
.h的文件可以理解为自己写的包