globfree()

Free storage allocated by a call to glob()

Synopsis:

#include <glob.h>

void globfree( glob_t* pglob );

Arguments:

pglob
A pointer to a glob_t structure that you passed to glob().

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.


Note: This function is in libc.a, but not in libc.so (in order to save space).

Description:

The globfree() function frees the storage allocated by a call to glob().

Classification:

POSIX 1003.1

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

Caveats:

Don't change the values in pglob between calling glob() and globfree().

See also:

glob(), wordexp(), wordfree()