basic.%dup

C Function/BASIC Program, Releases: AP/Unix

Returns new file descriptor.

Syntax

new.descriptor=%dup(file.descriptor)

Description

returns a new file descriptor associated to the same file as the one associated with 'file.descriptor'.

See Also

Command Name Type Description
basic.%close C Function Closes a Unix file.
basic.%read C Function Reads from a Unix file.
basic.%write C Function Writes to a Unix file.
basic.cfunc Definition can be called from a Pick/BASIC program or subroutine in AP/DOS and AP/Unix implementations using a syntax similar to that of normal C.
basic.cfunction Definition Declare a list of C functions.
basic.%whex C Function Writes to a Unix file, converting into binary.
basic.%rdhex C Function Reads a Unix file and translates to hexadecimal.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.