数组初始化

OLECHAR temp[256];
memset(temp,0x00,sizeof(temp));

注意:sizeof(temp) = 512!而不是256,故写成 memset(temp,0x00,sizeof(temp)*sizeof(OLECHAR));就错啦。


同理: fgetws( temp, sizeof(temp), fp );
就是去读512个字节出来!(最后一位为L"\0")
原文地址:https://www.cnblogs.com/huqingyu/p/26250.html