ap_popendir — do an opendir() with cleanup
DIR *ap_popendir(pool *p, const char *name)
Essentially the same as the standard function opendir(
)
, except that it registers a cleanup function that will do
a closedir()
. A DIR
created
with this function should be closed with ap_pclosedir(
)
(or left for the cleanup to close). Apart from that, the
standard functions should be used.