Index of /geminiatari/FILES/UTILITY/SORTBIN

      Name                    Last modified       Size  Description

[DIR] Parent Directory 24-Sep-2006 15:31 - [   ] SORT.DOC 22-Jan-1989 16:24 3k [TXT] SORT.PRG 22-Jan-1989 16:25 28k


                              Sort
                              ----


   The sort utility here presented is comparable to the Unix sort utility;
   even most of the flags are the same. Sorting is done in core as much as
   possible; else a \tmp directory (or a user supplied one) is used for
   creation of temporary files.

   Two speedups have been done that might affect portability:
       1) a sortfile.c module is added that is included if the symbol BESTIO
   is defined. The stdio buffers have been increased to 2K, which seems a
   better choice than the standard 512.
       2) a fastcmp.asm module is added for faster comparision functions;
   these functions are taken from sortcomp.c if M68000 is not defined.

   Contents of complete package:

      fastcmp.asm    - module containing faster comparision functions
      readme         - this introductory file
      sort.c         - module containing basic sort functions
      sort.doc       - manual page for sort
      sort.prg       - the executable program
      sortcomp.c     - module containing comparision functions
      sortcomp.h     - header for sortcomp module
      sortfile.c     - module containing improved I/O functions
      sortfile.h     - header for sortfile module
      sortmain.c     - main module; argument scanning; general key matching
      sortmain.h     - header for sortmain module

   It will probably be distributed in two chucks: one containing .c and .h
   files, readme and sort.doc (submitted to comp.sources.atari.st) and one
   containing sort.prg, readme and sort.doc (s. to comp.binaries.atari.st).

   Compiled with Lattice C; first compiler pass with -dBESTIO option, second
   with -r option. Fastcmp.asm was assembled using the GST linker.

   This program was the result of a question on the net, asking for a disk
   based sort. It seemed like a nice project (in fact, it was 8-), and I
   hope at least the person who asked it can make some use of it.

   For questions, bug reports etc. try

      L.J.M. de Wit
      Nachtegaallaan 7
      5731XP Mierlo
      Holland
      E-mail: ..!mcvax!philmds!leo (and various other paths...)

   Enjoy! (sort of ...)