Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!hsdndev!cmcl2!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.bugs.sys5 Subject: Re: tsearch(3) and tfind return incorrect pointers Keywords: tsearch(3) Message-ID: <14963@smoke.brl.mil> Date: 24 Jan 91 01:14:41 GMT References: <888@amix.commodore.com> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 12 In article <888@amix.commodore.com> ford@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 published his implementation of these functions; you might contact him for a copy.