wordexp()

Updated: April 19, 2023

Perform word expansions

Synopsis:

#include <wordexp.h>

int wordexp( const char * words,
             wordexp_t * pwordexp,
             int flags );

Library:

libc

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

Description:

The wordexp() function performs shell-style word expansion.

Note: Because of security concerns, the versions of wordexp() and wordfree() in libc are stubs that do nothing. We recommend that you not use these functions.

Returns:

WRDE_NOSYS to indicate that wordexp() isn't supported.

Classification:

POSIX 1003.1

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