17 lines
241 B
C
17 lines
241 B
C
|
#include "location.h"
|
||
|
|
||
|
struct location getLocation(char lat[11], char lon[10]){
|
||
|
struct location lctn;
|
||
|
int i,j;
|
||
|
|
||
|
for(i=0; i<11; i++){
|
||
|
lctn.lat[i] = lat[i];
|
||
|
}
|
||
|
|
||
|
for(j=0; j<10; j++){
|
||
|
lctn.lon[j] = lon[j];
|
||
|
}
|
||
|
|
||
|
return lctn;
|
||
|
}
|