Synopsis
int OMequal_objs (
OMobj_id object1_id,
OMobj_id object2_id );
Description
OMequal_objs compares two object ids.
Arguments
object1_id
object2_id
Object ids.
Returned value
The returned value indicates whether the object ids are the same:
Returned value
|
Meaning
|
1 |
The object ids are the same. |
0 |
The object ids are not the same. |
OM_STAT_ERROR |
OMequal_objs has failed. See Return Status |
Example
/* Compare two object ids. */
OMobj_id object1_id, object2_id;
...
if (OMequal_objs(object1_id, object2_id) == 1)
printf("Object ids are equal.\n");
else
printf("Object ids are not equal or an error has occurred.\n");