XDF_CLOSE(3) | xdffileio library manual | XDF_CLOSE(3) |
xdf_close - 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.
2010 | EPFL |