Adding extra column to HDF5 Dataset in C

Hello All,

I have written Compound data to HDF5 File using H5DWrite in C.
Is there any way to add extra field after writing compound data?

Thank you!

‘Is there any way to add extra field after writing compound data?’ Do you mean to alter the compound datatype after creating a dataset; then using this altered datatype to write into the same dataset?

Can you give us a minimum (not quite) working/correct example that compiles and helps us to help you?

@steven Thanks for the response!
struct
{
int A;
int B;
}Alphabets;
I have written Alphabets Struct to HDF5 File using H5DWrite.
Now columns in H5 File would be A and B.
I would like to add Serial Number column to the dataset now.
similar to H5TBinsert_field API. As I haven’t used H5TB, I’m unable to add using H5TBinsert_field API

Thanks!