Next: , Previous: , Up: Files   [Index]


2.4 Get PnetCDF library version: ncmpi_inq_libvers

The function ncmpi_inq_libvers returns a string identifying the version of the PnetCDF library, and when it was built.

Operational Mode

This API is not associated to any opened file and hence can be called anytime.

Usage

const char * ncmpi_inq_libvers(void);

Errors

This function takes no arguments, and thus no errors are possible in its invocation.

Example

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: , Previous: , Up: Files   [Index]