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:

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

The string padding type is set with H5T_SET_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: May 17, 2019 | 03:22 PM