Re: [AD] for_each_file suggestion

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Mon, Aug 21, 2000 at 08:34:18AM -0400, Charles Wardlaw wrote:
> > for_each_file() should remain unsorted. You can sort files in callback
> > function.
> 
> Well then -- would it be best to do so using a linked list of all file
> names?  I actually think that such a callback should be added to the general
> library.

The most efficient thing would be to perform an insertion sort,
which is better done using a linked list than a linear array.
I'm not sure that this should be in the main library.

George

-- 
Random project update:
09/05/2000: Libnet 0.10.8 uploaded -- a few bugfixes
        http://www.canvaslink.com/libnet/  (try changes-0.10.8.txt)



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/