getSystemId()
Returns the system ID.
Synopsis
int getSystemId([string systemName]);
Parameters
Parameter | Description |
---|---|
systemName | Name of the system |
Return value
The function returns the number of the system or in the event of an error, -1.
Error
Description
The function returns the system ID of the specified system. If no system name has been specified, the system ID of its own system will be returned. If the system name is not known, -1 will be returned as the error.
Example
main()
{
int id, id2, id3, id5;
id = getSystemId();//id == 5 own systemSYSFive
// has SystemId ==5
id2=getSystemId("SYS_2:"); //id2 == 2
id5=getSystemId("SYSFive:"); //id5 == 5
id3=getSystemId("SYS_2"); //id3==-1 as colon is
missing
}
Assignment
Miscellaneous functions
Availability
CTRL