Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (D-E)
Guardian Procedure Calls Reference Manual—522629-013
4-20
DEFINEINFO Procedure
value-len output
INT:ref:1
gives the actual size of the external representation for the value. If greater than
value-buf-len, then only value-buf-len bytes have been transferred and
truncation has occurred. An absent attribute is indicated by a length of -1.
Considerations
This procedure is designed to support the short form of the command interpreter INFO
command.
Example
STRING .EXT define^name[0:23];
STRING .EXT class^name[0:15];
STRING .EXT attr^name[0:15];
STRING .EXT value^buf[0:n];
INT value^buf^len;
INT value^len;
.
.
define^name ':=' ["=mytape "];
value^buf^len := n;
error := DEFINEINFO( define^name, class^name, attr^name,
value^buf, value^buf^len, value^len );
IF error <> DEOK THEN ... ;