指针1

 

 

指针数值的赋值

typedef struct _CANMessageDetail

{
unsigned char LEN;
unsigned long CANID;    
unsigned char CANData[8];
}CANt_MessageDetail;

void CAN_com_data_T(CANt_MessageDetail * Tdata,const CANt_MessageDetail * Sdata)

{
  tU08 i;
  tU08 *pt,*ps;
  for(i =0,ps=&(Sdata->LEN),pt=&(Tdata->LEN);i      *pt = *ps;
  }
}  

 

 

你可能感兴趣的:(指针1)