CyberPsychotic wrote:
> ~ Maybe pcap_t structure is used only in internal library functions, and
> ~ you don't need to know members of this. It is possible when library
> ~ does all work around this data (in structure) like mallocing, freeing
> ~ and controls members, and you have to use only pcap_t* poointer to
> ~ struct.
>
> Oh. This seem to be matter. This was(is?) unclear to me however:
> so if I use a pointer to structure `X', which members should not be
> accessed, and I need to pass only the pointer itself to various functions,
> I don't need to have the structure declared somewhere, but only typedef of
> the structure would be enough. Is it right?
Yep. You can use e.g.
struct foo *ptr;
without ever having defined what `struct foo' contains (in which case,
any attempt to dereference `ptr' will result in an error).
--
Glynn Clements <[EMAIL PROTECTED]>