Damien MATTEI <ma****@unice.fr> wrote:
#include <search.h>
[...]
struct hsearch_data htab_ports;
[...]
memset (&htab_ports, 0, sizeof (struct hsearch_data));
gives errors:
snif.c:153: error: storage size of `htab_ports' isn't known
[...]
snif.c:2057: error: invalid application of `sizeof' to an incomplete type
<search.h> isn't a standard C header file, so it's hard to say what
is going wrong beside that obviously "struct htsearch_data" isn't
defined anywhere where the compiler can find it.
<OT>
If you're compiling this under some kind of Linux you may have
to #define _GNU_SOURCE to get the compiler to see what that
structure is. Send further question to comp.unix.programmer
in that case, please.
</OT>
Regards, Jens
--
\ Jens Thoms Toerring ___
Je***********@physik.fu-berlin.de
\__________________________
http://www.toerring.de