HP Operations Manager for Windows

opcreg_copy()


   #include opcapi.h

   int   opcreg_copy (
         const opcregcond     reg_cond,       /* in */
         opcregcond           *copy           /* out */
                     );

Parameters

reg_cond
Pointer to the registration condition to copy.

copy
Address of the pointer to the copied condition.

Description

The function opcreg_copy() creates a complete copy of a registration condition and returns it. The allocated memory has to be deallocated using opcreg_free().

Return Values

OPC_ERR_OK:
No error occurred.

OPC_ERR_NO_MEMORY:
Memory allocation error.

OPC_ERR_INVALID_OUTPARAM:
One of the output parameters is NULL or not of the correct type.

Versions

HPOM for Windows A.07.50 and later

See Also

opcreg_create()

opcreg_free()

opcreg_get_long()

opcreg_get_str()

opcreg_set_long()

opcreg_set_str()