home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.programming
- Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!giaeb!s1110238
- From: s1110238@giaeb.cc.monash.edu.au (Lee Hollingworth)
- Subject: Re: AVL tree code
- Message-ID: <s1110238.713796124@giaeb>
- Sender: news@monu6.cc.monash.edu.au (Usenet system)
- Organization: Monash University, Melb., Australia.
- Date: Fri, 14 Aug 1992 12:42:04 GMT
- Lines: 16
-
- If I e-mailed you my AVLtree code or you copied it from this newsgroup,
- please note that there is a bug in the compare macro in the avltree.h
- file... :-(
-
- I suggest you delete this macro from the avltree.h file and add the
- following function to the top of your avltree.c file;
-
- int compare(int a, int b)
- {
- return a == b ? 0 : a > b ? 1 : -1;
- }
-
- If anyone wants a copy of the modified code please e-mail me...
-
- Lee Hollingworth
- s1110238@giaeb.cc.monash.edu.au
-