pennmush-1.8.3p3/game/data/
pennmush-1.8.3p3/game/log/
pennmush-1.8.3p3/game/save/
pennmush-1.8.3p3/game/txt/evt/
pennmush-1.8.3p3/game/txt/nws/
pennmush-1.8.3p3/po/
pennmush-1.8.3p3/win32/msvc.net/
pennmush-1.8.3p3/win32/msvc6/
#ifndef __PENNSORT_H
#define __PENNSORT_H
#include "copyrite.h"

/* Sort and comparision functions */

#define MAX_SORTSIZE (BUFFER_LEN / 2)  /**< Maximum number of elements to sort */

char *autodetect_list(char **ptrs, int nptrs);
char *get_list_type(char *args[], int nargs, int type_pos, char *ptrs[],
                    int nptrs);
char *get_list_type_noauto(char *args[], int nargs, int type_pos);
int gencomp(dbref player, char *a, char *b, char *sort_type);
void do_gensort(dbref player, char *keys[], char *strs[], int n,
                char *sort_type);
/** Type definition for a qsort comparison function */
typedef int (*comp_func) (const void *, const void *);
void sane_qsort(void **array, int left, int right, comp_func compare);


/* Comparison functions for qsort() and other routines.  */
int int_comp(const void *s1, const void *s2);
int nval_comp(const void *s1, const void *s2);
int uint_comp(const void *s1, const void *s2);
int str_comp(const void *s1, const void *s2);
int stri_comp(const void *s1, const void *s2);
int dbref_comp(const void *s1, const void *s2);
int u_comp(const void *s1, const void *s2);     /* For sortby() */

#endif                          /* __PENNSORT_H */