Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/wid_build/api/cmp.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/wid_build/api/cmp.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/wid_build/api/cmp.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/wid_build/api/cmp.html on line 8

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:

PhABResExportCommon_t


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/wid_build/api/cmp.html on line 112

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/wid_build/api/cmp.html on line 112