home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / programm / 2316 < prev    next >
Encoding:
Text File  |  1992-08-14  |  842 b   |  27 lines

  1. Newsgroups: comp.programming
  2. Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!giaeb!s1110238
  3. From: s1110238@giaeb.cc.monash.edu.au (Lee Hollingworth)
  4. Subject: Re: AVL tree code
  5. Message-ID: <s1110238.713796124@giaeb>
  6. Sender: news@monu6.cc.monash.edu.au (Usenet system)
  7. Organization: Monash University, Melb., Australia.
  8. Date: Fri, 14 Aug 1992 12:42:04 GMT
  9. Lines: 16
  10.  
  11. If I e-mailed you my AVLtree code or you copied it from this newsgroup,
  12. please note that there is a bug in the compare macro in the avltree.h
  13. file... :-(
  14.  
  15. I suggest you delete this macro from the avltree.h file and add the
  16. following function to the top of your avltree.c file;
  17.  
  18. int compare(int a, int b)
  19. {
  20.     return a == b ? 0 : a > b ? 1 : -1;
  21. }
  22.  
  23. If anyone wants a copy of the modified code please e-mail me...
  24.  
  25. Lee Hollingworth
  26. s1110238@giaeb.cc.monash.edu.au
  27.