Bug#63575: libc6: tsearch()/twalk() broken
Package: libc6
Version: 2.1.3-2
Severity: important
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
EXAMPLE
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 */
x: 103
x: 198
x: 105
x: 115
x: 81
x: 255
x: 74
x: 236
x: 41
x: 205
x: 186
x: 171
41
74
81
103
105
115
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.
Reply to: