C char* 转化为struct

怎么样将char数组转化成struct结构

memcpy(&xx, &str, sizeof(XX));

http://topic.csdn.net/u/20071223/09/bb5973ae-b74b-439c-894b-cdd293e324b3.html

你可能感兴趣的:(C char* 转化为struct)