XMDF  2.2
4.3. Version Number

When we open a file to write XMDF data we write out a version number. Future versions of the XMDF API will allow backward compatibility to previous versions. A function exists to retrieve which version of the library is being used (currently linked library). Another function exists to retrieve which version of the library wrote a specific file. Both items are important because although future versions of the library will read files written by older versions of the library, we cannot guarantee that older versions of the library will read files generated by future versions of the library correctly.

C/C++
int xfGetLibraryVersion(float *Version);
int xfGetLibraryVersionFile(xid File, float *Version);
FORTRAN
SUBROUTINE XF_GET_LIBRARY_VERSION(Version, Error)
REAL, INTENT(OUT) :: Version
INTEGER, INTENT(OUT) :: Error
SUBROUTINE XF_GET_LIBRARY_VERSION_FILE(File, Version, Error)
INTEGER(XID), INTENT(IN) :: FileId
REAL, INTENT(OUT) :: Version
INTEGER, INTENT(OUT) :: Error