Name
ap_popendir — do an opendir() with cleanup
Synopsis
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.
Get Apache: The Definitive Guide, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.