how to copy to flexible array inside struct in c?
#include #include typedef struct { int val; char buf[]; } foo; int ma