libplist  2.7.0
API Documentation - Return to Homepage

◆ plist_dict_get_uint()

PLIST_API uint64_t plist_dict_get_uint ( plist_t  dict,
const char *  key 
)

Get an unsigned integer value from a given PLIST_DICT entry.

The value node can be of type PLIST_INT, but also PLIST_STRING with a numerical value as string (decimal or hexadecimal), or PLIST_DATA with a size of 1, 2, 4, or 8 bytes in little endian byte order.

Note
This function returns 0 if the dictionary does not contain an entry for the given key, if the value node is of any other than the above mentioned type, or has any mismatching value.
Parameters
dictA node of type PLIST_DICT
keyThe key to look for in dict
Returns
Signed integer value depending on the value of the node.