|
porting GNU tdestroy() function to SPARC Solaris
The GNU tdestroy() function only exists in Linux. Currently I have to port it to SPARC Solaris 9. It seems that tdestroy() can't be implemented with tsearch/tfind/tdelete/twalk combinations. I will be shocked if this is true because it will be ridiculous for the API function designers if there is no way to free all the resources of a tree in Solaris OS. Do I have to re-write the whole bunch of tree manipulation functions from scratch?
http://www.planetpenguin.de/manpage-3-tdestroy.3.html
__________________
AKA Solomon/blowfish.
Last edited by WhoCares; 01-07-2005 at 10:37.
|