[Winpcap-users] Re: [error]'pcap_dump' : cannot convert parameter
1 from 'struct pcap_dumper *' to 'unsigned char *'
Guy Harris
guy at alum.mit.edu
Mon May 15 17:06:53 GMT 2006
joe kibz wrote:
> It worked , i was wondering though won't a typecast from struct to char*
> result in MASSIVE data loss ?
No. That's not how C-derived languages work; they rely, for better or
worse, on pointers to objects of type X being convertable to "char *" or
"void *" and then back to pointers to objects of type X without loss of
data.
More information about the Winpcap-users
mailing list