A header file is normally where you keep definitions..
Take this file
C:
#include <regx51.h>
void myFunction1(void);
void myFunction2(void);
void main(void)
{
myFunction1();
myFunction2();
}
Then do this
C:
#include <regx51.h>
#include "myHeader.h"
void main(void)
{
myFunction1();
myFunction2();
}
then make this and name it myHeader.h..
C:
#include <regx51.h>
void myFunction1(void);
void myFunction2(void);
I woulf normaly just write the functions in the header as well...