home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 308_01 / baselist.cpp < prev    next >
C/C++ Source or Header  |  1990-09-20  |  919b  |  36 lines

  1. /*
  2.     TITLE:        Class BaseList;
  3.     DESCRIPTION:    "C++ virtual base class for deriving linked-list
  4.             objects";
  5.  
  6.     VERSION:        1.0;
  7.     DATE:           9/21/90l
  8.     COMPILERS:      Borland Turbo C++ V.1.0;
  9.     KEYWORDS:    linked list base class;
  10.     FILENAME:    BaseList.cpp;
  11.     SEE-ALSO:    BaseList.hpp;
  12.  
  13.     AUTHOR:         Michael Kelly
  14.             254 Gold St. Boston, Ma. 02127
  15.             Copyright 1990;
  16.  
  17.     COPYRIGHT:    This code may not be commercially distributed
  18.             without prior arrangement with the author.  It
  19.             may be used by programmers, without royalty, for
  20.             their personal programs and for "one of a kind"
  21.             or "custom" applications, provided that said
  22.             programmers assume all liability concerning
  23.             same.
  24. */
  25.  
  26.  
  27. #include "baselist.hpp"
  28.  
  29. BaseList *this_list = NULL;
  30.  
  31. int qcompare(const void *entry1, const void *entry2)
  32. {
  33.     return this_list->compare(
  34.     (*(Entry **)entry1)->item, (*(Entry **)entry2)->item);
  35. }
  36.