xdf_close
Close a xDF file
- Provided by: libxdffileio-dev (Version: 0.3-4ubuntu3)
- Source: xdffileio
- Report a bug
Close a xDF file
#include <xdfio.h>
int xdf_close(struct xdf* xdf);
xdf_close() closes the xDF file referenced by the handle xdf. When the file is closed, if a record is not full, it will be completed by zeros. After a call to xdf_close(), xdf should not be used anymore even if the call fails since all resources associated will be freed anyways.
The function returns 0 in case of succes. Otherwise, -1 is returned and errno is set accordingly.