chore: It is a tradition to use CPP tricks to avoid parsing the same header file more than once
This commit is contained in:
parent
3615fb97d6
commit
9aa39c1b53
|
@ -1,3 +1,8 @@
|
||||||
|
/*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*/
|
/*use struct statement to define structure*/
|
||||||
struct location {
|
struct location {
|
||||||
/*latitide like +052.26594*/
|
/*latitide like +052.26594*/
|
||||||
|
@ -7,3 +12,5 @@ struct location {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct location getLocation(char lat[11], char lon[10]);
|
struct location getLocation(char lat[11], char lon[10]);
|
||||||
|
|
||||||
|
#endif /* LOCATION_H */
|
||||||
|
|
|
@ -1 +1,8 @@
|
||||||
|
/*It is a tradition to use CPP tricks to avoid parsing the same header file more than once*/
|
||||||
|
|
||||||
|
#ifndef WRITE_LOCATION_FILE_H
|
||||||
|
# define WRITE_LOCATION_FILE_H
|
||||||
|
|
||||||
int write_location_file(char *lat, char *lon);
|
int write_location_file(char *lat, char *lon);
|
||||||
|
|
||||||
|
#endif /* WRITE_LOCATION_FILE_H */
|
||||||
|
|
Loading…
Reference in New Issue