home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / snip9707.zip / SNIPSORT.H < prev    next >
C/C++ Source or Header  |  1997-07-05  |  1KB  |  51 lines

  1. /* +++Date last modified: 05-Jul-1997 */
  2.  
  3. /*
  4. **  Header file for SNIPPETS sorting functions
  5. */
  6.  
  7. #ifndef SNIPSORT__H
  8. #define SNIPSORT__H
  9.  
  10. #include <stddef.h>
  11. #include "dirport.h"
  12.  
  13. /*
  14. **  Prototypes
  15. */
  16.  
  17. #ifdef __STDC__
  18.  #define strsort _strsort
  19. #endif
  20.  
  21. void hugesort(void HUGE *basep, unsigned  nel,
  22.       unsigned width,
  23.       int (*comp)(void HUGE *, void HUGE *));         /* Hugesort.C     */
  24. void    *sortl(void *list, void *(*getnext)(void *),
  25.             void (*setnext)(void *, void *),
  26.             int (*compare)(void *, void *));          /* Ll_Qsort.C     */
  27. void isort(void *base, size_t nmemb, size_t size,
  28.       int (*comp)(const void *, const void *));       /* Rg_Isort.C     */
  29. void qsort(void *, size_t, size_t,
  30.       int (*)(const void *, const void *));           /* Rg_Qsort.C     */
  31. void swap_chars(char *, char *, size_t);              /* Rg_Qsort.C     */
  32. void quicksort(int v[], unsigned n);                  /* Rgiqsort.C     */
  33. void ssort (void *base, size_t nel, size_t width,
  34.       int (*comp)(const void *, const void *));       /* Rg_Ssort.C     */
  35. void strsort(char **v, unsigned n);                   /* Strsort.C      */
  36.  
  37. /*
  38. **  File: LL_MSORT.C
  39. */
  40.  
  41. typedef struct list_struct {
  42.          struct list_struct *next;
  43.          char *key;
  44.          /* other stuff */
  45.          } list;
  46.  
  47. list *lsort (list *p);
  48.  
  49.  
  50. #endif /* SNIPSORT__H */
  51.