Parse a version number

WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows
USupported on UNIX
VSupported on OpenVMS
xcall U_PARSEVERSION(ver_number, version, revision, minor)



The incoming version number (v.r.m). (a)


Returned with the application version number. (n)


Returned with the major revision number. (n)


Returned with the minor revision number. (n)


U_PARSEVERSION parses a version number string (ver_number) into numeric values.

The version_num string is expected to be in the form v.r.m, where v is the application version number, r is the major revision number, and m is the minor revision number.

You can use an uppercase letter for a two‑byte version number. For example, you can use A for 10, as in A.1.1 (for 10.1.1). But note that if you use an uppercase letter, it must be the first character of v, r, or m. In this case, the second character is ignored—for example, 1A.2.3 is interpreted as 1.2.3, and A1.2.3 is interpreted as 10.2.3.

See also

U_CHECKVERSION for information about testing version numbers.