Set specified number of bytes of a buffer to a specified integer value .
LPVOID memset( LPVOID lpMem, int nValue, size_t uSize )
The value of lpMem.
EX1
void memset_ex1() { int aa = 0; LPVOID nPtr = memset(&aa, 255, sizeof(int)); if(nPtr) printf("now aa is %x \n", aa); else printf("memset failed\n"); }
the input parameter nValue should not be greater than 255
origin.h