The function NF90_INQ_LIBVERS returns a string identifying the version of the netCDF library, and when it was built.
function nf90_inq_libvers() character(len = 80) :: nf90_inq_libvers
This function takes no arguments, and returns no error status.
Here is an example using nc_inq_libvers to print the version of the netCDF library with which the program is linked:
print *, trim(nf90_inq_libvers())