string dataset & H5T_STR_NULLTERM

Hello,

I write a string dataset with a C program.
The string length is 100 and 50 characters are written.
The 51th character is a null character.

Even if I know the string is null terminated, is there any hdf5 function
which returns a fortran compatible string ?

Until now, I scan the last null character in the string :
index = scan(string, "\0", back)
and I work with string(1:index).

Regards,

Cyril.

···

----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.