Preprocessor Directives: At the beginning of every .h file of yours, please add the preprocessor directives as specified below at the beginning and end of the file. This is useful to prevent the error of multiple definitions if your .h file is included in multiple .c files. For e.g., if the file is name my.h, then:
#ifndef __MY_H
#define __MY_H
At the end of the file, add the following:
#endif /* __MY_H */