【发布时间】:2014-02-15 07:38:46
【问题描述】:
我有两个嵌套结构。
struct OS_CLASS {
PAGE route_table[10];
}*sptr_vrf;
struct PAGE{
int routes;
}
struct G-info{
PAGE *displ_table;
} *global_info
我需要将 sptr_vrf->route_table[0] 复制到 global_info->displ_table。
我怎样才能使用 memcpy 呢?
【问题讨论】:
-
你想要深拷贝还是浅拷贝?