Skip to main content
Open topic with navigation CAPL Functions » System Variables » sysIsVariableTypeSigned

sysIsVariableTypeSigned

Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE

Function Syntax

dword sysIsVariableTypeSigned(sysvar * variable);

Description

Returns whether the data type of the system variable is a signed numeric type. The function returns 1 for system variables of type Int64, Int32, Double, Integer Array and Double Array. It returns 0 for other variables, in particular for variables of type UInt32 and UInt64.

Parameters

  • variable: the variable

Return Values

  • 1: if the variable has a signed numeric type
  • 0: otherwise

Example

sysvar * var;
var = lookupSysvar("SomeNamespace::SomeVariable");
write("Signed: %d", sysIsVariableTypeSigned(var));
sysGetVariableSVType