memset doubt



Hi,

Can somebody explain whether an explicit typecast is mandatory while
calling memset function for a structure? like in the following code
snapshot.....
struct some_structure x;
memset((some_structure*)&x,0,sizeof(some_structure));
Will memset(&x,0,sizeof(some_structure)); cause some issues?

Thanks in advance
Srivatsan

.



Relevant Pages