Bug#63575: libc6: tsearch()/twalk() broken
The manual page of tsearch has an example - that seems
to be working on all the non-gnu libc's I have access to
- so I'd guess glibc has Yet Another BUG (tm).
man 3 tsearch
The following program inserts twelve random numbers into a
binary tree, then prints the numbers in order. The num
bers are removed from the tree and their storage freed
during the traversal.
printf("x: %d\n", *ptr); /* Add this to see the random
numbers before walking the tree */
The rest of them seem to be missing, why?
-- System Information
Debian Release: woody
Kernel Version: Linux bx3 2.3.99-pre2 #273 Mon Mar 20 22:23:38 EET 2000 i686 unknown
Versions of the packages libc6 depends on:
ii ldso 1.9.11-5 The Linux dynamic linker, library and utilities.