Operating systems, development tools, and professional services
for connected embedded systems
for connected embedded systems
values" />
![]() |
![]() |
![]() |
![]() |
PhABResExportCommon_t.cmp()
A function exported by PhAB to compare two resource editor values
Synopsis:
int cmp ( ResDatatype_t type, int n1, void *v1, int n2, void *v2 );
Arguments:
- type
- The data type of the values you want to compare.
- n1, v1
- The value members for the first value you want to compare. The values depend on the data type.
- n2, v2
- The value members for the second value you want to compare. The values depend on the data type.
Description:
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.
Returns:
- 0
- the values are equal
- non-zero
- the values are not equal
Classification:
Photon
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
See also:
![]() |
![]() |
![]() |
![]() |

![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)