ICSE 2001 Logo   Rigi Logo
 
rcl_version
Back to RCL Command Index

No arguments accepted.

Description:

This procedure returns the version of Rigi in a formatted string.

Return Value:

The version number of Rigi is returned in a string formatted as: major.minor.revision. For example, if this is the fifth major release, fourth minor release, second revision, a call to this procedure returns "5.4.2". The subfields are constrained to a single digit.

Exceptions:

None.

Example:

# Convert the version number to a three-digit integer.
# Note that all subfields in the version number are
# single digits.

scan [rcl_version] "%d.%d.%d" major minor release

set vnum [expr 
major*100 + 
minor*10 + 
release]

Back to RCL Command Index