Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

ft_close - Close session

&pagelevel(3)&pagelevel

You can use ft_close() to close a session opened with ft_open(). This function must be the last one called in a session. ft_close() releases resources that are no longer required. The session number is deleted and no subsequent reference to this session is possible.

Syntax

#include <ftapi.h>
int ft_close(const void *session,          /* input */
               struct ft_err *errorinfo,
               void *options);              /* input */

Parameter

session

Number of the session which is to be closed.

errorinfo

Area in which detailed information is stored if an error is encountered (see section “ft_err” (Error handling)).
The specification of this parameter is optional. If you do not require any more precise error information then you can specify the value NULL for errorinfo.

options

The specification of the options parameter is optional. If the value NULL is specified then message activity at the program interface is compatible with that of the program interface of openFT < V10.
Alternatively, it is possible to specify the ft_options structure (see section “ft_options” (Version of the program interface)) to activate the openFT message number scheme as of openFT V10 and the extensions to the function.

Return value

0

No error.

-1

Error. The error type is stored in errorinfo.