Sorting Binary data in C

Chris Torek torek at elf.ee.lbl.gov
Mon Mar 25 11:05:31 AEST 1991


In article <1991Mar24.180156.11234 at planck.uucp> oday at planck.uucp
(Abdi M. Oday) writes:
>I'm porting some VMS/fortran code to SUN-UNIX/FORTRAN.

If you want FORTRAN, why are you posting in comp.lang.c?  If you want
Unix information, why not some comp.unix newsgroup?

>One of the routines was formatting binary data using the VMS
>sort routine.  The VMS sort routine supported binary data,
>but I don't think the Unix sort utility does.

In one clause you talk about `routines' and in the next `utilities':
if you want `routines', ANSI C provides qsort()---which, despite the
name, is merely `a sort' and not necessarily `a quicksort'---and
qsort works on all, er, sorts of data.  If you want utilites, choose
a better newsgroup....
-- 
In-Real-Life: Chris Torek, Lawrence Berkeley Lab CSE/EE (+1 415 486 5427)
Berkeley, CA		Domain:	torek at ee.lbl.gov



More information about the Comp.lang.c mailing list