Your modules all do this.
Code:
#include "declare.h"
#include "employee_data.h"
The file "declare.h" is this.
Code:
#ifndef DECLARE_H
#define DECLARE_H
//Global Variables
char filename[100];
char message[300];
int rc;
//Function prototypes
void print_menu();
int create_log_file(char* filename);
int print_log_message(char message[]);
void get_current_time(char msge[]);
EMPDATA* enter_data(int* num_array);
char* convert_case(char* temp1);
int format_SSN(char* temp1);
int format_DOB(char* temp1);
int write_file_data(data,num_array);
#endif
EMPDATA is defined in "employee_data.h". Either change the order of inclusion in all your modules, or have "declare.h" include "employee_data.h".
In "employee_data.c", you need a prototype of 'get_data' before you call it in 'enter_data'.
You have a typo in 'write_file_data'.
Code:
if(data_file==NULL_
In 'get_data', there is no variable 'temp'.
Code:
scanf("%s",&temp1);
And there is dangling code at the end of 'get_data'.