basic.%close.apdos C Function/BASIC Program

basic.%close.apdos

Command basic.%close.apdos C Function/BASIC Program
Applicable release versions: AP/DOS
Category BASIC Program (486)
Description closes an MS-DOS file specified by the "file.handle" returned by a previous call to "%open()".

For more information, refer to the MS-C library reference manual under CLOSE(). All MS-DOS files must be explicitly closed, since files are not automatically closed at program termination. Closing one of the system files (stdin, stdout, etc.) has unpredictable results.

Should an error condition arise within this C function, the "system(0)" function contains the associated error message number.
Syntax rc = %close(file.handle)
Options
Example
Purpose
Related basic.cfunction
basic.cfunc
basic.system