Go to the first, previous, next, last section, table of contents.


redir_cmdline_delete

Syntax

#include <debug/redir.h>

void redir_cmdline_delete (cmdline_t *cmd);

Description

For the rationale and general description of the debugger redirection issue, see section redir_debug_init.

This function serves as a destructor for a cmdline_t object. It frees storage used for the command-line arguments associated with cmd, closes any open handles stored in it, and frees memory used to store the file handles and the file names of the files where standard handles were redirected.

The function is safe to use even if cmd might be a NULL pointer, or if some of members of the cmdline_t structure are NULL pointers. See section redir_debug_init, for detailed description of the cmdline_t structure.

Portability

not ANSI, not POSIX

Example

 redir_cmdline_delete (&child_cmd);


Go to the first, previous, next, last section, table of contents.