This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/252] hsearch_data is not usable with sizeof() as


------- Additional Comments From jakub at redhat dot com  2004-07-03 07:49 -------
No, it works just fine.  Try:
#define _GNU_SOURCE
#include <search.h>

struct hsearch_data htab_ports;

int main (void)
{
  memset (&htab_ports, 0, sizeof (struct hsearch_data));
  /* or */
  memset (&htab_ports, 0, sizeof (htab_ports));
}


-- 


http://sources.redhat.com/bugzilla/show_bug.cgi?id=252

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]