Ftw routines

Rich Salz rsalz at bbn.com
Thu Dec 6 02:57:45 AEST 1990


Yow -- I'd forgotten I wrote that.  Anyhow, the BSD version of scandir is
a little better and you might want to get it from the free BSD source tree,
instead.  As I recall, the thing that made it better is that it did a stat
of the directory and then did st.st_size/24 to get the original number of
entries to malloc, so it would pretty much never malloc.
-- 
Please send comp.sources.unix-related mail to rsalz at uunet.uu.net.
Use a domain-based address or give alternate paths, or you may lose out.



More information about the Alt.sources.d mailing list