Category : C Source Code
Archive   : C_DBFS.ZIP
Filename : SORTEST.C

 
Output of file : SORTEST.C contained in archive : C_DBFS.ZIP
/****************************************************************************/
/* */
/* */
/* sortest.c v1.3 (c) 1990 Ken Harris */
/* */
/* */
/****************************************************************************/
/* */
/* This software is made available on an AS-IS basis. Unrestricted */
/* use is granted provided that the copyright notice remains intact. */
/* The author makes no warranties expressed or implied. */
/* */
/****************************************************************************/

#include

main()
{
char rec[10];
int i;

printf("sortest - Test of Callable Record Sort\n\n");
printf("Sort-init...\n");
sort_init(6, "aa1.4");

printf("Release 100 records...\n");
for (i=99; i>0; i--)
{ sprintf(rec, "%04d", i);
printf("%d\n", i);
sort_release(rec);
}

printf("Sort-merge...\n");
sort_merge();

printf("Return 100 records...\n");
while (sort_return(rec))
printf("%4.4s\n",rec);
}


  3 Responses to “Category : C Source Code
Archive   : C_DBFS.ZIP
Filename : SORTEST.C

  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/