Page tree

 

JAVA

FORTRAN

C++

C

 

Link

H5T_ENUM_NAMEOF

Returns the symbol name corresponding to a specified member of an enumeration datatype

Procedure:

H5T_ENUM_NAMEOF(dtype_id, value, name, size)

Signature:

herr_t H5Tenum_nameof( hid_t dtype_id, void *value, char *name, size_t size )

SUBROUTINE h5tenum_nameof_f(type_id, value, namelen, name, hdferr) 
  IMPLICIT NONE
  INTEGER(HID_T), INTENT(IN) :: type_id  ! Datatype identifier 
  INTEGER, INTENT(IN) :: value           ! Value of the enumeration datatype
  INTEGER(SIZE_T), INTENT(IN) :: namelen ! Length of the name
  CHARACTER(LEN=*), INTENT(OUT) :: name  ! Name of the enumeration datatype
  INTEGER, INTENT(OUT) :: hdferr         ! Error code
END SUBROUTINE h5tenum_nameof_f

Parameters:
hid_t dtype_idIN: Enumeration datatype identifier
void *value    IN: Value of the enumeration datatype
char *nameOUT: Buffer for output of the symbol name
size_t sizeIN: Anticipated size of the symbol name, in bytes (characters)

Description:

H5T_ENUM_NAMEOF finds the symbol name that corresponds to the specified value of the enumeration datatype dtype_id.

At most size characters of the symbol name are copied into the name buffer. If the entire symbol name and null terminator do not fit in the name buffer, then as many characters as possible are copied (not null terminated) and the function fails.

Returns:

Returns a non-negative value if successful. Otherwise returns a negative value and, if size allows it, the first character of name is set to NULL.

Example:

Coming Soon!

--- Last Modified: May 10, 2019 | 02:46 PM