snipsort.h

来自「c语言库函数!里面包含了所以c语言中的系统函数的实现及其详细说明和代码!请大家及」· C头文件 代码 · 共 51 行

H
51
字号
/* +++Date last modified: 05-Jul-1997 */

/*
**  Header file for SNIPPETS sorting functions
*/

#ifndef SNIPSORT__H
#define SNIPSORT__H

#include <stddef.h>
#include "dirport.h"

/*
**  Prototypes
*/

#ifdef __STDC__
 #define strsort _strsort
#endif

void hugesort(void HUGE *basep, unsigned  nel,
      unsigned width,
      int (*comp)(void HUGE *, void HUGE *));         /* Hugesort.C     */
void    *sortl(void *list, void *(*getnext)(void *),
            void (*setnext)(void *, void *),
            int (*compare)(void *, void *));          /* Ll_Qsort.C     */
void isort(void *base, size_t nmemb, size_t size,
      int (*comp)(const void *, const void *));       /* Rg_Isort.C     */
void qsort(void *, size_t, size_t,
      int (*)(const void *, const void *));           /* Rg_Qsort.C     */
void swap_chars(char *, char *, size_t);              /* Rg_Qsort.C     */
void quicksort(int v[], unsigned n);                  /* Rgiqsort.C     */
void ssort (void *base, size_t nel, size_t width,
      int (*comp)(const void *, const void *));       /* Rg_Ssort.C     */
void strsort(char **v, unsigned n);                   /* Strsort.C      */

/*
**  File: LL_MSORT.C
*/

typedef struct list_struct {
         struct list_struct *next;
         char *key;
         /* other stuff */
         } list;

list *lsort (list *p);


#endif /* SNIPSORT__H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?