Name

ap_pfopen — open a stream with automatic cleanup

Synopsis

FILE *ap_pfopen(pool *p, const char *name, const char *mode)

Equivalent to fopen(), except that it ensures that the stream is closed when the pool is destroyed. Returns a pointer to the new stream or NULL on error.

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.