[vox-tech] stupid hash doesn't work with libglib-2.0
Brian Lavender
brian at brie.com
Fri Feb 12 00:24:10 PST 2010
I am trying to eliminate duplicates, so I figured I would just use a
hash from libglib-2.0. It worked fine with static pointers (or whatever
you call that portion oof code)
Problem is, once I try it with dynamically allocated pointers, it
doesn't eliminiate any duplicates.
Anything obvious that I am missing?
Comple with the following.
gcc `pkg-config glib-2.0 --cflags` read_hash.c -o read_hash
brian
--
Brian Lavender
http://www.brie.com/brian/
"About 3 million computers get sold every year in China, but people don't
pay for the software. Someday they will, though. As long as they are going
to steal it, we want them to steal ours. They'll get sort of addicted, and
then we'll somehow figure out how to collect sometime in the next decade."
-- Bill Gates (Microsoft) 1998
-------------- next part --------------
A non-text attachment was scrubbed...
Name: read_hash.c
Type: text/x-csrc
Size: 2586 bytes
Desc: not available
Url : http://lists.lugod.org/pipermail/vox-tech/attachments/20100212/88bc3b73/attachment.c
-------------- next part --------------
1
4
56
32
12
1
4
56
56
12
More information about the vox-tech
mailing list