www.delorie.com/djgpp/doc/libc/libc_650.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

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 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

ANSI/ISO C No
POSIX No

Example

 
 redir_cmdline_delete (&child_cmd);


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004