Code:
for( j=0; j< 3; j++)
{ TmpPathRec.leg2_carry_cost[j] = fss_leg_found->carry_cost[j]; }
in header file
short carry_cost[3];
short leg1_carry_cost[3];
Previously we are using carry_cost[j] this for numeric.But now i want use it for char
I want to conform whether below code is right or not?
Code:
for( j=0; j< 3; j++)
{ strncpy(TmpPathRec.leg1_c64[j],fss_leg_found->c64[j],C64_LEN); }
in header file
char c64[3][C64_LEN];
char leg1_c64[3][C64_LEN];
Waiting for valuable replies
Thanks & Regards,
vijay,