summaryrefslogtreecommitdiffstats
path: root/docs/nspr/reference/pl_comparevalues.rst
blob: 9fef0b63f3c2dbab034c7f1828d727ad0bd3dfc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
PL_CompareValues
================

Compares two ``void *`` values numerically.


Syntax
------

.. code::

   #include <plhash.h>

   PRIntn PL_CompareValues(const
     void *v1,
     const void *v2);


Description
-----------

:ref:`PL_CompareValues` compares the two ``void *`` values ``v1`` and
``v2`` numerically, i.e., it returns the value of the expression ``v1``
== ``v2``.

:ref:`PL_CompareValues` can be used as the comparator function for integer
or pointer-valued key or entry value.