]> SALOME platform Git repositories - modules/yacs.git/blob - src/HDFPersist/HDFattrOpen.c
Salome HOME
bc4b5fba9e9cb5f1a3cda7253d40af4d34f3195c
[modules/yacs.git] / src / HDFPersist / HDFattrOpen.c
1 #include "hdfi.h"
2
3 /*
4  * - Name: HDFattrOpen
5  * - Description : open a HDF attribute
6  * - Parameters :
7  *     - pid (IN)  : father ID
8  *     - name  (IN)  : attribute name 
9  * - Result : 
10  *     - if success : attribute ID
11  *     - if failure : -1 
12  */ 
13 hdf_idt HDFattrOpen(hdf_idt pid,char * name)
14 {
15    hdf_idt aid;
16
17    if ((aid = H5Aopen_name(pid,name)) < 0)
18      return -1;
19
20    return aid;
21 }