home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 308_01 / sorts.inc < prev    next >
Text File  |  1990-06-17  |  505b  |  36 lines

  1.  
  2. /*
  3.  *  sorts.inc -- include file for LIST.C
  4.  */
  5.  
  6. static int sort0();
  7. static int sort1();
  8. static int sort2();
  9. static int sort3();
  10.  
  11. static int (*sorts[MAXLISTS])() = { sort0, sort1, sort2, sort3 };
  12.  
  13. static int sort0()
  14. {
  15.     list = listptr[0];
  16.     return lqsort();
  17. }
  18.  
  19. static int sort1()
  20. {
  21.     list = listptr[1];
  22.     return lqsort();
  23. }
  24.  
  25. static int sort2()
  26. {
  27.     list = listptr[2];
  28.     return lqsort();
  29. }
  30.  
  31. static int sort3()
  32. {
  33.     list = listptr[3];
  34.     return lqsort();
  35. }
  36.