I have the following two structures...
Code:
typedef struct Coord {
int Degrees;
float Minutes;
char Cardinal_Sign[4];
} Coord;
typedef struct GPS_Data_Struct {
time_t Time;
Coord Latitude;
Coord Longitude;
int Fix_Quality;
int Sattelites;
long Altitude;
} GPS_Data_Struct;
GPS_Data_Struct GPS_Data;
I then have the following function...
Code:
int Get_GPS_Data(GPS_Data_Struct *GPS_Data) {
GPS_Data->Satellites = 1;
GPS_Data->Latitude.Cardinal_Sign = " ";
// yadda yadda
return 0;
}
I get an "L-value required" error on the Cardinal_Sign line. Even when I used strcpy.
What should I have there instead?