This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/252] hsearch_data is not usable with sizeof() as
- From: "jakub at redhat dot com" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 3 Jul 2004 07:49:39 -0000
- Subject: [Bug libc/252] hsearch_data is not usable with sizeof() as
- References: <20040702165219.252.damien_mattei@yahoo.com>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- 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.