pipe

Gamma: Version 4.0
Prev |  | Next

# `pipe`

`pipe` -- creates a pipe.

## Syntax

    pipe ()

## Arguments

none

## Returns

A list of the read pipe and the write pipe, each as a file pointer.

## Description

This function creates an un-named pipe.

## Example

        Gamma> pipe1 = pipe();
        (#<File:"read_pipe"> #<File:"write_pipe">)
        Gamma> pread = car(pipe1);
        #<File:"read_pipe">
        Gamma> pwrite = cadr(pipe1);
        #<File:"write_pipe">
        Gamma> write (pwrite, "This is a test");
        t
        Gamma> read (pread);
        "This is a test"
        Gamma>

Prev | Home | Next
`open` | Up | `princ`, `print`, `pretty_princ`, `pretty_print`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.