On 10/31/16 5:44 PM, Eric Blake wrote: > On 10/31/2016 04:14 PM, Chet Ramey wrote: > >>>> Nice, thanks for the modifications. >> Here's the modified version. >> >> Chet >> -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars >> longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU [email protected] >> http://cnswww.cns.cwru.edu/~chet/ >> > >> >> if ((dir = opendir(dirname))) >> { >> while ((dp = readdir(dir))) > > Ouch. This version has O(n^2) complexity when dealing with deep > hierarchies.
You appear to have completely missed the point of this simple, specialized
implementation. It has a single purpose.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/
signature.asc
Description: OpenPGP digital signature
