HP Operations Manager for Windows

opcdata_set_str()


   #include opcapi.h

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

Parameters

data
HPOM data structure.

attribute
Select the attribute that is set.

value
Specify the value of the attribute.

Description

Use the function opcdata_set_str() to set the string attribute to a copy of value.

Return Values

OPC_ERR_OK:
OK

OPC_ERR_INVALID_INPARAM:
data is NULL, attribute is invalid, value is NULL

OPC_ERR_NO_MEMORY:
memory allocation failed

Versions

HPOM for Windows A.07.50 and later

See Also

HPOM Data Structures