Category : Files from Magazines
Archive   : CSORT.ZIP
Filename : CSORT.H

 
Output of file : CSORT.H contained in archive : CSORT.ZIP
/* ---------------------- csort.h --------------------------- */

#define NOFLDS 5 /* maximum number of fields to sort */
#define MOSTMEM 50000U /* most memory for sort buffer */
#define LEASTMEM 10240 /* least memory for sort buffer */

struct s_prm { /* sort parameters */
int rc_len; /* record length */
struct {
int f_pos; /* 1st position of field (rel 1) */
int f_len; /* length of field */
char ad; /* a = ascending; d = descending */
} s_fld [NOFLDS]; /* one per field */
};

struct bp { /* one for each sequence in merge buffer */
char *rc; /* -> record in merge buffer */
int rbuf; /* records left in buffer this sequence */
int rdsk; /* records left on disk this sequence */
};

int init_sort(struct s_prm *prms); /* Initialize the sort */
void sort(char *rcd); /* Pass records to Sort */
char *sort_op(void); /* Retrieve sorted records*/
void sort_stats(void); /* Display sort statistics*/


  3 Responses to “Category : Files from Magazines
Archive   : CSORT.ZIP
Filename : CSORT.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/