Guardian Programming Reference Summary for C
Functions Summary (D-F)
Guardian Programming Reference Summary for C—522630-001
5-7
DEFINEREADATTR
Obtains the current value of an attribute in a DEFINE in the calling process’s context or
in the working set.
return value:
read-mode
info-word
#include <cextdecs(DEFINEREADATTR)>
short DEFINEREADATTR( [ constchar *define-name ] /* i */
,char *attribute-name /* i,o */
,[ short _near *cursor ] /* i,o */
,char *value-buf /* o */
,short value-buf-len /* i */
,short _near *value-len /* o */
,[ short read-mode ] /* i */
,[ short _near *info-word ] );/* o */
0 = Successful.
2049 = A syntax error occurred in name.
2051 = DEFINE not found.
2052 = An error occurred when placing PFS in use.
2054 = Bounds error on parameter.
2055 = Attribute not supported.
2061 = No more attributes.
2066 = Missing parameter.
0 = Search the present attributes only.
1 = Search the present plus required attributes that are not present.
2 = Search the present plus the required and optional attributes that are not present.
Bits 14-15 Indicates the type of the attribute:
0 = Optional, 1 = Defaulted, 2 = Required.