memset doubt
- From: "srivatsan_b" <srivatsanbs@xxxxxxxxx>
- Date: 30 Aug 2005 22:43:54 -0700
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
.
- Follow-Ups:
- Re: memset doubt
- From: Barry Schwarz
- Re: memset doubt
- From: Keith Thompson
- Re: memset doubt
- From: Peter Nilsson
- Re: memset doubt
- Prev by Date: Re: confused abt file operations
- Next by Date: Re: confused abt file operations
- Previous by thread: Code consolidation
- Next by thread: Re: memset doubt
- Index(es):
Relevant Pages
|