Reference Guide > G Routines > GETPLATFORM Function
  

GETPLATFORM Function
Returns a string identifying the host platform.
Usage
name = GETPLATFORM()
Input Parameters
None.
Returned Value
name—String identifying the host platform. Host Platform Identifiers lists the host platforms.
 
Table 8-1: Host Platform Identifiers
OS Version
Returned Identifying String
Linux-64
lnx64
Linux-32
lnx32
Windows-64
win64
Windows-32
win32
Solaris-64
sol64
Solaris-32
sol32
AIX-64
aix64
AIX-32
aix32
HP-UX-32
hpx32
Mac-OS-X-64
mac64
Keywords
None.
Discussion
GETPLATFORM returns a five character string designation of the host platform, where the first three characters are an alphabetic abbreviation of the name and where the last two characters are 32 or 64 and designate the word size. Using GETPLATFORM to determine the host platform is more convenient than using the system variable !Version, since different combinations of the members of this structure must be used on different platforms.

Version 2017.0
Copyright © 2017, Rogue Wave Software, Inc. All Rights Reserved.