memset Sets the number of bytes specified to the value specified starting from the pointer. memset(&MyBuffer[0], 0, NumOfBytesToSet);