Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!dog.ee.lbl.gov!elf.ee.lbl.gov!torek From: torek@elf.ee.lbl.gov (Chris Torek) Newsgroups: comp.lang.c Subject: Re: Sorting Binary data in C Message-ID: <11405@dog.ee.lbl.gov> Date: 25 Mar 91 01:05:31 GMT References: <1991Mar24.180156.11234@planck.uucp> Reply-To: torek@elf.ee.lbl.gov (Chris Torek) Organization: Lawrence Berkeley Laboratory, Berkeley Lines: 19 X-Local-Date: Sun, 24 Mar 91 17:05:31 PST In article <1991Mar24.180156.11234@planck.uucp> oday@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@ee.lbl.gov