chore: It is a tradition to use CPP tricks to avoid parsing the same header file more than once

This commit is contained in:
dancingCycle 2023-01-03 14:41:31 +01:00
parent 3615fb97d6
commit 9aa39c1b53
2 changed files with 14 additions and 0 deletions

View File

@ -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*/
struct location {
/*latitide like +052.26594*/
@ -7,3 +12,5 @@ struct location {
};
struct location getLocation(char lat[11], char lon[10]);
#endif /* LOCATION_H */

View File

@ -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);
#endif /* WRITE_LOCATION_FILE_H */