basic.%fdopen

C Function/BASIC Program, Releases: AP/Unix

Associates stream with a file.descriptor.

Syntax

stream=(char*)%fdopen(file.descriptor, type)

Description

associates a stream with the 'file.descriptor' obtained from %open(), %dup(), %creat().

See '%fopen' for a list of 'types' and their descriptions.

See Also

Command Name Type Description
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.%freopen C Function Reopens a stream.
basic.%fopen C Function Opens a stream.
basic.%fclose C Function Closes stream.

User Comments

What do you think?

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

Login to leave your comments.