Hello,
sorry if this seems like a trivial query but I was having some issue setting a string to a char array in a structure. I have a set up like this:
I can get the date set but not the string.Code:
typedef struct
{
int date; char name[20];
} call[2];
call iec;
call.date = 1022009;
call.name ="TEST";
Also the call[2] at the end of the structure definition this means that I can hold 2 structures right? Here I only set up one, called iec.