vxug-WinAPI-Tricks/StringsAndData/ZeroMemory.c

15 lines
196 B
C
Raw Permalink Normal View History

2021-11-12 18:10:18 +00:00
VOID ZeroMemory(PVOID Destination, SIZE_T Size)
{
PULONG Dest = (PULONG)Destination;
SIZE_T Count = Size / sizeof(ULONG);
while (Count > 0)
{
*Dest = 0;
Dest++;
Count--;
}
return;
}