I have the following two structures...
I then have the following function...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 get an "L-value required" error on the Cardinal_Sign line. Even when I used strcpy.Code:int Get_GPS_Data(GPS_Data_Struct *GPS_Data) { GPS_Data->Satellites = 1; GPS_Data->Latitude.Cardinal_Sign = " "; // yadda yadda return 0; }
What should I have there instead?



LinkBack URL
About LinkBacks



