fd_to_file

Gamma: Version 4.0
Prev |  | Next

# `fd_to_file`

`fd_to_file` -- creates a file pointer from a descriptor.

## Syntax

    fd_to_file (fd, mode)

## Arguments

`fd`

  A file descriptor as returned from `fd_open`.

`mode`

  A string indicating the mode for the file: `"r"` for read-only, `"w"` for writable, `"a"` for append.

## Returns

t, if successful, otherwise nil.

## Description

This function creates a file pointer from a file descriptor.

## See Also

`fileno`, Referencing Files

Prev | Home | Next
`fd_read` | Up | `fd_write`

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