LispWorks User Guide and Reference Manual > 27 The COMMON-LISP Package

NextPrevUpTopContentsIndex

software-version

Function
Summary

Identifies the version of the Operating System.

Package

common-lisp

Signature

software-version => description

Values

description

A string or nil .

Description

The function software-version returns a string giving the version of the Operating System, or nil if this cannot be determined.

On Microsoft Windows systems, description begins with the specific Operating System. This is "Windows 98" , "Windows Millennium" , "Windows 2000" , "Windows XP" , "Windows XP x64 Edition" , "Windows 2003" , "Windows Vista" , "Windows Server \"Longhorn\"" or "Some Windows NT derivative" . This is followed by the version numbers (Major.Minor), build number and optionally service pack.

Example
(software-version)
=>
"Windows Vista: 6.0 (build 6000) "
(software-version)
=>
"Windows XP: 5.1 (build 2600) Service Pack 2" 
(software-version)
=>
"Windows Millennium: 4.90 (build 3000)" 
See also

software-type


LispWorks User Guide and Reference Manual - 22 Dec 2009

NextPrevUpTopContentsIndex