OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
hio_close.c
Go to the documentation of this file.
1 #include "hio.h"
2 #include <mfhdf.h>
3 
4 int32 hio_close(hio_struct info)
5 /*******************************************************************
6 
7  hio_close
8 
9  purpose: close the hdf dataset
10 
11  Returns type: int 0 if OK
12 
13  Parameters: (in calling order)
14  Type Name I/O Description
15  ---- ---- --- -----------
16  struct hio_struct info I information struct
17  about the opened file
18 
19  Modification history:
20  Programmer Date Description of change
21  ---------- ---- ---------------------
22  W. Robinson 30-Sep-2005 from l1io_close
23 
24  *******************************************************************/
25  {
26  int iret;
27  /*
28  * just close the file up
29  */
30  iret = Hclose(info.fid);
31  if (iret == 0)
32  iret = SDend(info.sdfid);
33  return iret;
34 }
int32_t hio_close(hio_struct info)
Definition: hio_close.c:3