--- Valnir <[EMAIL PROTECTED]> wrote: > if you look at his original call to Qsort he IS passing it a count. > > he is passing it "i" which is counted during a for loop prior to the Qsort > call. >
Yes, he's passing a count. What he is NOT passing is an array. Qsort doesn't operate on linked lists. If it did you wouldn't need to pass a count, cause it would just stop when it got to the NULL record on the end. The point of contention has been that (as per the man page) qsort takes the address to the first element in an array, the count of elements in the array, and a pointer to a comparison function. ~Kender ===== -----BEGIN GEEK CODE BLOCK----- Version 3.1 GCS/L/C/O d-(+) s++: a-- C+++$>++++ UBLS++++$ P+++(--)$ L+++>++++ E--- W+>++$ N !o K? w(--) !O M- !V PS+ PE(++) Y+ PGP->+ t+ 5 X+() R(+) tv+@ b++(+++) !DI+++ D G(-) e>+++$ h---() r+++ y+++ ------END GEEK CODE BLOCK------ __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/

