ft_sdclose() terminates the read-out of the file attributes whose identification was initiated with ft_sdopen(). This function must be called as the final operation following a successful call of ft_sdopen(). ft_sdclose() releases resources that are no longer required. You cannot subsequently reference this ID again.
Syntax
#include <ftapi.h>
int ft_sdclose(void *id, /* input/
struct ft_err *errorinfo);
Parameters
id
ID of the request (return value from ft_sdopen)
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.
Return value
0 | No error. |
-1 | Error. The error type is stored in errorinfo. |