I am learning C and have a question about structs.
I have a
struct myStruct { char member1[16]; char member2[10]; char member3[4]; };
Pretty simple with memcpy.
char foo[30]; struct myStruct s; s.member1 = //some data s.member2 = //some data s.member3 = //some data memcpy(foo, &s, 30);