dio_longest_foreign_device_name_c

	status.i4.v = dio_longest_foreign_device_name_c(length.i4.r
							[,system_type.i4.v])

	This routine returns the length of the longest foreign device name.

	length		length of longest foreign device name
	[system_type]	control system type (constants are in 'control_systems')
			(CONTROL_SYSTEM_EPICS -> EPICS,
			 CONTROL_SYSTEM_APACS -> APACS,
			 CONTROL_SYSTEM_LABVIEW -> LabView,
			 CONTROL_SYSTEM_OPC -> OPC,
			 CONTROL_SYSTEM_SNMP -> SNMP,
			 CONTROL_SYSTEM_SIEMENS_S7 -> Siemens S7)
			(default (0) is to check all system types)

	This function returns ACNET status values as follows:

	OK			success
	SQL_xxx			error retrieving longest name length

	This function requires the following include files:

	diolib_h, control_systems_h, acnet_errors_h

	Related functions:

	dio_foreign_device_info_c

	C/C++ usage:

	int	status;
	int	length;
	int	system_type = 0;

	status = dio_longest_foreign_device_name_c(&length,system_type);