pl_comparestrings.rst (506B)
1 PL_CompareStrings 2 ================= 3 4 Compares two character strings. 5 6 7 Syntax 8 ------ 9 10 .. code:: 11 12 #include <plhash.h> 13 14 PRIntn PL_CompareStrings( 15 const void *v1, 16 const void *v2); 17 18 19 Description 20 ----------- 21 22 :ref:`PL_CompareStrings` compares ``v1`` and ``v2`` as character strings 23 using ``strcmp``. If the two strings are equal, it returns 1. If the two 24 strings are not equal, it returns 0. 25 26 :ref:`PL_CompareStrings` can be used as the comparator function for 27 string-valued key or entry value.