Page tree

 

JAVA

FORTRAN

C++

C

 

Link

H5T_GET_STRPAD

Retrieves the type of padding used for a string datatype.

Procedure:

H5T_GET_STRPAD(dtype_id)

Signature:

H5T_str_t H5Tget_strpad( hid_t dtype_id )

SUBROUTINE h5tget_strpad_f(type_id, strpad, hdferr) 
  IMPLICIT NONE
  INTEGER(HID_T), INTENT(IN) :: type_id    
                                  ! Datatype identifier 
  INTEGER, INTENT(OUT) :: strpad  ! String padding method for a string datatype 
                                  ! Possible values of padding type are:
                                  !    Pad with zeros (as C does): 
                                  !        H5T_STR_NULLPAD_F(0) 
                                  !    Pad with spaces (as FORTRAN does): 
                                  !        H5T_STR_SPACEPAD_F(1)
  INTEGER, INTENT(OUT) :: hdferr  ! Error code
END SUBROUTINE h5tget_strpad_f

Parameters:
hid_t dtype_id    IN: Identifier of datatype to query.

Description:

H5Tget_strpad retrieves the type of padding used for a string datatype.

The string padding type is set with H5Tset_strpad and valid settings are described in that entry.

Returns:

Returns a valid string storage mechanism if successful; otherwise H5T_STR_ERROR (-1).

Example:

Coming Soon!

--- Last Modified: January 24, 2018 | 10:50 AM