_CP_close

_CP_close


_CP_clearselect Index Level _CP_col1
Syntax int _CP_close(int expression)
Category C Interface
Type C Function
Description equivalent to the FlashBASIC statement: close

The expression should be an integer file descriptor returned by the _CP_open call.

This function returns -1 if an error occurs. The error code is contained in _CP_errno.
Options
See Also C Functions introduction _CP_open _CP_write _CP_writev
Example CPSTR * s = _CP_mkstr("myfile");
int f;

_CP_open(&f,_CP_str_null,s);
_CP_clearfile(f);
_CP_close(f);
Warnings
Compatibility AP 6.1
_CP_clearselect Index Level _CP_col1