-

Functions HI-TECH C DUP

From HI-TECH C for CP/M Fan WIKI(EN)
Revision as of 18:55, 31 July 2017 by Kumokosi (talk | contribs) (Created page with "<strong>DUP</strong> ==SYNOPSIS== #include <unixio.h> int dup(int fd) ==DESCRIPTION== Given a file descriptor, such as returned by <strong>open</strong>(), this ro...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

DUP

SYNOPSIS

#include  <unixio.h>

int dup(int fd)


DESCRIPTION

Given a file descriptor, such as returned by open(), this routine will return another file descriptor which will refer to the same open file. -1 is returned if the fd argument is a bad descriptor or does not refer to an open file.

SEE ALSO

open, close, creat, read, write