HP Operations Manager for Windows

opcdata_get_str()


   #include opcapi.h

   char *opcdata_get_str(
            const       opcdata data,           /* in */
            int         attribute               /* in */
                        );

Parameters

data
Data structure containing the queried attribute.

attribute
Specifies the attribute that is queried.

Description

Instead of a status value, the function opcdata_get_str() returns a pointer to the desired string value. This function can, therefore, be used directly in another function call.

Return Values

Returns a character pointer to the value of the defined attribute in the data area. The pointer points into the internal data area. Modification of the attribute is only allowed using opcdata_set_str(); direct access to the string is not supported.

Versions

HPOM for Windows A.07.50 and later

See Also

HPOM Data Structures