detect_redirection

Determines whether output has been redirected.

Library:LibC
Service:Library

Syntax

  #include <library.h> 
   
  int detect_redirection (
      redirect_t   redir_specs[3],
      int         *argc,
      char        *argv[] );
  

Parameters

redir_specs

(OUT) Specifies an array of redirect_t structures.

argc

(OUT) Points to the number of arguments found in the command line.

argv

(OUT) Points to a vector of arguments.

Return Values

Returns 0.

See Also

construct_argc_argv