libplist  2.7.0
API Documentation - Return to Homepage

◆ plist_key_val_compare()

PLIST_API int plist_key_val_compare ( plist_t  keynode,
const char *  cmpval 
)

Helper function to compare the value of a PLIST_KEY node against a given value.

This function basically behaves like strcmp.

Parameters
keynodenode of type PLIST_KEY
cmpvalvalue to compare against
Returns
0 if the node's value and cmpval are equal, > 0 if the node's value is lexicographically greater than cmpval, or < 0 if the node's value is lexicographically less than cmpval.