OpenDOF Project
#define DOSObjectID_IsEqual (   objectID1,
  objectID2,
  size 
)

Returns non-zero if the two object identifiers are equal.

This routine requires the size of one of the IDs to be passed as the third parameter. Note that using memcmp in this case is valid, because the lengths of the two object identifiers are coded in the first bytes. This prevents buffer overflow no matter if the length passed in the third parameter is longer than either (but not both) of the input object identifiers.

Parameters
objectID1The first DOSObjectID to compare. This must not be NULL.
objectID2The second DOSObjectID to compare. This must not be NULL.
sizeThe size of one of the Object Ids.
core-c-cos Version 7.0.1 Build 0
2018-02-08