🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #3803

Re: qsort() help

#3803
From: Jeff
Date: Thu, 15 Oct 1992 19:42
11 lines
813 bytes
In article <1992Oct15.183616.21088@infonode.ingr.com> fordke@infonode.ingr.com (Keith Ford) writes:
>int AreaNumberCompare (void _FAR *a, void _FAR *b)
>  {
>  struct paths _FAR **aa;
>  struct paths _FAR **bb;
>  aa=a; bb=b;
>  return ((*aa)->area_number - (*bb)->area_number);
>  }

How bout?
aa=*(int*)a;  bb=*(int*)b;
Technical Details
Message-ID: <1992Oct15.194245.17032@coe.montana.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!uakari.primate.wisc.edu!usenet.coe.montana.edu!icsg0131
References: <1992Oct15.183616.21088@infonode.ingr.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!uakari.primate.wisc.edu!usenet.coe.montana.edu!icsg0131
From: icsg0131@cs.montana.edu (Jeff)
Subject: Re: qsort() help
Message-ID: <1992Oct15.194245.17032@coe.montana.edu>
Sender: usenet@coe.montana.edu (USENET News System)
Organization: Montana State University, College of Engineering
References: <1992Oct15.183616.21088@infonode.ingr.com>
Distribution: usa
Date: Thu, 15 Oct 1992 19:42:45 GMT
Lines: 12