tsearch(3) and tfind return incorrect pointers

Doug Gwyn gwyn at smoke.brl.mil
Thu Jan 24 12:14:41 AEST 1991


In article <888 at amix.commodore.com> ford at amix.commodore.com (Mike "Ford" Ditto) writes:
>I had an occation to use the SysV tree manipulation routines in libc
>(tsearch(3)) for the first time today, and discovered that they don't
>work.

Actually, they DO work, but the interface documentation is botched
beyond belief, and when it was reworked for SVID 3 (and SVR4), the
types were gotten utterly wrong.  Consequently I avoid the library
versions and use my own implementation with proper types, etc.

Some time ago, Gary Moss <Moss at BRL.MIL> published his implementation
of these functions; you might contact him for a copy.



More information about the Comp.bugs.sys5 mailing list