Next: , Previous: nc_strerror, Up: Datasets


2.3 Get netCDF library version: nc_inq_libvers

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

Usage

     const char * nc_inq_libvers(void);

Errors

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

Example

Here is an example using nc_inq_libvers to print the version of the netCDF library with which the program is linked:

     #include <netcdf.h>
        ...
        printf("%s\n", nc_inq_libvers());