basic.%fclose

C Function/BASIC Program, Releases: AP/Unix

Closes stream.

Syntax

variable=%fclose( (char*)stream)

Description

closes the stream specified by 'stream' returned by a previous call to %fopen().

Note the 'stream' is defined as a pointer to a character, instead of a pointer to a FILE.

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.%fopen C Function Opens a stream.
basic.%fprintf C Function Writes formatted string on a stream.
basic.%fgets C Function Reads a C string from a stream.
basic.%freopen C Function Reopens a stream.
basic.%fdopen C Function Associates stream with a file.descriptor.
basic.%fgetc C Function Gets a character from a stream.
basic.%fputc C Function Puts a character on a stream.

User Comments

What do you think?

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

Login to leave your comments.