A function exported by PhAB to compare two resource editor values
int cmp ( ResDatatype_t type, int n1, void *v1, int n2, void *v2 );
This function is exported from PhAB in the PhABResExportCommon_t structure.
This is a convenience function that you can use to compare two values. While in some cases, for instance with the RES_DATATYPE_NUMERIC datatype, it might be easy enough to just compare the values without using this function. In other cases, as with RES_DATATYPE_PIXMAP, it is easier to use this function.