Routines (alphabetical) > Routines: H > HDF-EOS Routines > EOS_EH_GETVERSION

# EOS_EH_GETVERSION

The EOS_EH_GETVERSION function is used to retrieve the HDF-EOS version string of an HDF-EOS file, which is returned in the version argument. This designates the version of HDF-EOS that was used to create the file. This string is of the form “HDFEOS_Vmaj.min” where maj is the major version and min is the minor version.

## Examples

To get the HDF-EOS version (assumed to be 2.3) used to create the HDF-EOS file:

fid = EOS_SW_OPEN("Swathfile.hdf", /READ)

status = EOS_EH_GETVERSION(fid, version)

`version` will contain the string “HDFEOS_V2.3”.

## Syntax

Result = EOS_EH_GETVERSION(fid, version)

## Return Value

Returns SUCCEED(0) if successful and FAIL(–1) otherwise.

## Arguments

### fid

File id (long) returned by EOS_SW_OPEN, EOS_GD_OPEN, or EOS_PT_OPEN.

### version

HDF-EOS version (string).

## Keywords

None

## Version History

5.2 | Introduced