???????C/C++???????????ZeroMemory??memset?? “={0}”????????????г????????????????????????и?????????????????????????????????????????????????崻???bug???????С???????????????????ZeroMemory???????????????????????????
????memset
????void *memset(void *s??int ch??size_t n); ????C Run-time Library????????????????????????????????????????????????????????????????????????????????????????????????????????????á??ο???http://www.cplusplus.com/reference/cstring/memset/
?????????
????char str[] = "almost every programmer should know memset!";
????memset (str??'-'??6);
????puts (str);
????char str[] = "almost every programmer should know memset!";
????memset (str??'-'??6);
????puts (str);
?????????
????------ every programmer should know memset!
????------ every programmer should know memset!
????ZeroMemory
????ZeroMemory??????????????????????SDK?е?????? ??????????0????????????????????????
????[cpp] view plaincopy
????#define RtlZeroMemory(Destination??Length) memset((Destination)??0??(Length))
????#define ZeroMemory RtlZeroMemory
????[cpp] view plaincopy
????#define RtlZeroMemory(Destination??Length) memset((Destination)??0??(Length))
????#define ZeroMemory RtlZeroMemory
???????????
????ZeroMemory???????memset?????
????ZeroMemory???????windows????
???????:
????ZeroMemory??memset??????????????????????????0??????????????麯??????????????麯????????麯???????0?????????????????麯???????????????3????????
???????????麯???????????麯??????????????????ù?????????ɡ?
???????????????????а???STL??壨Vector??List??Map????????????ZeroMemory????????????н????????????????????е?????????????????????????????????????????????????飺??(class)???ù????????г?????????????ZeroMemory?????????????