getSystemNames()

Returns a list of all the system names and system IDs known to the own system.

Synopsis

int getSystemNames(dyn_string &names, dyn_uint &ids)

Parameters

Parameter Description
Names Names of all known systems
Ids Identification of all known systems

Return value

The function returns 0 in normal operation or in the event of errors, -1.

Error

Errors can be retrieved with getLastError().

Description

The function returns a list of all the system names and system IDs known to the specified system.

The system names are returned without the trailing ":", other than the function "getSystemName()".

Note that the function does not delete the content of the list. Therefore, the list can contain the same entry several times.

Example

main()
{
  dyn_string n;
  dyn_uint id;
  getSystemNames(n,id);
  DebugN(n,"",id);
}

Assignment

Miscellaneous functions

Availability

CTRL