libplist  2.7.0
API Documentation - Return to Homepage

◆ plist_string_val_compare()

PLIST_API int plist_string_val_compare ( plist_t  strnode,
const char *  cmpval 
)

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

This function basically behaves like strcmp.

Parameters
strnodenode of type PLIST_STRING
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.