/*It is a tradition to use CPP tricks to avoid parsing the same header file more than once*/ #ifndef LOCATION_H # define LOCATION_H /*use struct statement to define structure*/ struct location { /*latitide like +052.26594*/ char lat[11]; /*longiture like +10.52673*/ char lon[10]; }; struct location getLocation(char lat[11], char lon[10]); #endif /* LOCATION_H */