File: wnsort.h

package info (click to toggle)
libwn6 6.0-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 5,996 kB
  • ctags: 3,938
  • sloc: ansic: 45,083; makefile: 926; csh: 274; sh: 12
file content (24 lines) | stat: -rw-r--r-- 363 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef wnsortH
#define wnsortH


#include "wnlib.h"
#include "wnsll.h"


void wn_sort_sll
(
  wn_sll *plist,
  int (*pcompare_func)(ptr p1,ptr p2)
);

void wn_radix_sort_sll
(
  wn_sll *plist,
  char (*pkeyindex_func)(ptr key,int index),
  int (*pkeylen_func)(ptr key)
);

void wn_sort_ptrarray(ptr array[],int size,int (*pcompare_func)(ptr p1,ptr p2));

#endif