isapipe

Indicates if a specified file descriptor is associated with a pipe.

Format

#include  <unixio.h>

int isapipe  (int file_desc);

Argument

file_desc
A file descriptor.

Description

For more information about pipes, see Chapter 5.

Return Values
Indicates an association with a pipe. 
Indicates no association with a pipe. 
-1  Indicates an error (for example, if the file descriptor is not associated with an open file). 


Previous Page | Next Page | Table of Contents | Index