The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
562 B
33 lines
562 B
6 years ago
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
#include "hdf5.h"
|
||
|
|
||
|
int main(void)
|
||
|
{
|
||
|
herr_t ier;
|
||
|
unsigned maj;
|
||
|
unsigned min;
|
||
|
unsigned rel;
|
||
|
|
||
|
ier = H5open();
|
||
|
if (ier) {
|
||
|
fprintf(stderr,"Unable to initialize HDF5: %d\n", ier);
|
||
|
return EXIT_FAILURE;
|
||
|
}
|
||
|
|
||
|
ier = H5get_libversion(&maj, &min, &rel);
|
||
|
if (ier) {
|
||
|
fprintf(stderr,"HDF5 did not initialize!\n");
|
||
|
return EXIT_FAILURE;
|
||
|
}
|
||
|
printf("C HDF5 version %d.%d.%d\n", maj, min, rel);
|
||
|
|
||
|
ier = H5close();
|
||
|
if (ier) {
|
||
|
fprintf(stderr,"Unable to close HDF5: %d\n", ier);
|
||
|
return EXIT_FAILURE;
|
||
|
}
|
||
|
return EXIT_SUCCESS;
|
||
|
}
|