1 2 3 4 5 6 7 8 9 10 11 12 13
#include "hdf5.h" int main() { herr_t retval; unsigned majnum, minnum, relnum; if ((retval = H5get_libversion(&majnum, &minnum, &relnum)) >= 0) { printf("Hello, HDF5 %d.%d.%d!\n", majnum, minnum, relnum); } return retval; }