From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,9999f36386daee68 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-10-26 06:30:55 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!swrinde!sgiblab!cs.uoregon.edu!usenet.ee.pdx.edu!fastrac.llnl.gov!lll-winken.llnl.gov!usenet From: oberman@icaen.llnl.gov Newsgroups: comp.unix.osf.osf1 Subject: V2.0 qsort() problem? Date: Fri, 21 Oct 94 18:11:51 GMT Organization: Lawrence Livermore National Laboratory Message-ID: <388smb$948@lll-winken.llnl.gov> NNTP-Posting-Host: rogue.llnl.gov I have a problem with the V2.0 qsort() library routine. qsort(topics, num_topics, sizeof topics[0], strcmp); All of the arguments look good prior to call, but the sort is seemingly random. The records are re-ordered, but not in any sequence I can make sense out of. And worse, some entries are duplicated and others lost! Is anyone aware of this problem. And is there another version that I might be able to get that works correctly? R. Kevin Oberman Energy Sciences Network (ESnet) National Energy Research Supercomputer Center (NERSC) Lawrence Livermore National Laboratory (LLNL) Internet: koberman@llnl.gov +1 510-422-6955