VistaIODecodeAttrValue(3) | Library Functions Manual | VistaIODecodeAttrValue(3) |
VistaIODecodeAttrValue - decode an attribute value
VistaIOBoolean VistaIODecodeAttrValue (str, dict, repn, value)
VistaIOStringConst str; VistaIODictEntry *dict; VistaIORepnKind repn; VistaIOPointer value;
VistaIODecodeAttrValue decodes the string str, returning its value in the form specified by repn.
If a dictionary, dict, has been provided, the routine determines whether str is a keyword defined in the dictionary. If so, it uses the value associated with that keyword rather than the attribute's original value. (See the VistaIOdictionary(3) manual page.)
The value obtained directly from str, or indirectly via the dictionary, is converted to the representation repn and then stored at the location pointed to by value.
VistaIODecodeAttrValue returns TRUE if successful and FALSE otherwise. It will fail if repn is invalid, or if the str cannot be interpreted as a value of the type indicated by repn.
VistaIOEncodeAttrValue(3), VistaIOGetAttr(3), VistaIOattribute(3),
The value argument must point to sufficient storage to contain a value of the representation requested. Neither VistaIODecodeAttrValue nor the C compiler can automatically check that this is so.
Art Pope <pope@cs.ubc.ca>
Adaption to vistaio: Gert Wollny <gw.fossdev@gmail.com>
24 April 1993 | VistaIO Version 1.2.14 |