At Friday 1/25/2008 07:49 PM, you wrote:
>~Rick wrote:
> > All,
> >
> > I have a structure defined below (I've eliminated some of the
> > elements because it's big). It's setup to be part of a single linked
> > list but at the moment I have an array built:
> >
> > struct ENTRY    linedata[MAX_ENTS];
><snip>
>
>Use linedata with qsort().  Then, inside the comparison function,
>typecast to the structure and extract the element(s) you want to compare
>and go from there.


Thomas,

I did use linedata in the qsort call. My problem was trying to get 
the proper typecasts in the comparison function. My brain wasn't 
getting it. It works now.

Thanks,

~Rick


>--
>Thomas Hruska
>CubicleSoft President
>Ph: 517-803-4197
>
>*NEW* MyTaskFocus 1.1
>Get on task.  Stay on task.
>
>http://www.CubicleSoft.com/MyTaskFocus/
>
>
>
>To unsubscribe, send a blank message to 
><mailto:[EMAIL PROTECTED]>.
>Yahoo! Groups Links
>
>
>

Reply via email to