pvTest#
Purpose#
Tests an instance of structure of type PV to determine
if it is a proper structure of type PV.
Format#
- i = pvTest(p1)#
- Parameters:
p1 (struct) – an instance of structure of type
PV- Returns:
i (scalar) – if 0, p1 is a proper structure of type
PV, else if 1, an improper or uninitialized structure of typePV.
Examples#
// Create a valid PV structure
struct PV p1;
p1 = pvCreate;
p1 = pvPack(p1, 1|2|3, "beta");
// Test if p1 is a valid PV structure
i = pvTest(p1);
print (i == 0); // 1 (true) means valid
Source#
pv.src