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_st ructure*)&x,0,s izeof(some_stru cture));
Will memset(&x,0,siz eof(some_struct ure)); cause some issues?
Thanks in advance
Srivatsan
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_st ructure*)&x,0,s izeof(some_stru cture));
Will memset(&x,0,siz eof(some_struct ure)); cause some issues?
Thanks in advance
Srivatsan
Comment