Hi there,
So i have a struct:
and a char buffer:Code:struct stinfo{ char info1[19]; char info2[5]; char info3[2]; }struct_info;
i want to cast buf to stInfo... What is the best (and safe) way to do this in C++??Code:char buf[] = "info1datainfo2i3";
thank you!