foo.c
#include <stdio.h>
#include <time.h>
void foo ()
{
printf ("Just for an example!\n");
}
#include <stdio.h>
#include <time.h>
void foo ()
{
printf ("Just for an example!\n");
}
图1
yunli.blog.51cto.com~
$ gcc -E foo.c >final.c
yunli.blog.51cto.com~
$ vi final.c
1414 # 3 "foo.c" 2
1415
1416 void foo ()
1417 {
1418 printf ("Just for a test!\n");
1419 }
:set nu
$ gcc -E foo.c >final.c
yunli.blog.51cto.com~
$ vi final.c
1414 # 3 "foo.c" 2
1415
1416 void foo ()
1417 {
1418 printf ("Just for a test!\n");
1419 }
:set nu
图2
foo.h
#include <stdio.h>
void foo ();
foo.c
#include “foo.h”
void foo ()
{
printf ("Just for an example!\n");
}
#include <stdio.h>
void foo ();
foo.c
#include “foo.h”
void foo ()
{
printf ("Just for an example!\n");
}
图3
foo.h
void foo ();
foo.c
#include <stdio.h>
#include “foo.h”
void foo ()
{
printf ("Just for an example!\n");
}
void foo ();
foo.c
#include <stdio.h>
#include “foo.h”
void foo ()
{
printf ("Just for an example!\n");
}
图4