arinc: functions from stdapi.c