Next: ncmpi_create, Previous: ncmpi_strerrno, Up: Files [Index]
The function ncmpi_inq_libvers returns a string identifying the version of the PnetCDF library, and when it was built.
This API is not associated to any opened file and hence can be called anytime.
const char * ncmpi_inq_libvers(void);
This function takes no arguments, and thus no errors are possible in its invocation.
Here is an example using ncmpi_inq_libvers to print the version of the PnetCDF library with which the program is linked:
#include <pnetcdf.h> ... printf("%s\n", ncmpi_inq_libvers());
Example output:
1.5.0 of 8 July 2014
Next: ncmpi_create, Previous: ncmpi_strerrno, Up: Files [Index]