Copy a signed integer value from source_dict to target_dict.
The node is looked up in source_dict with given key, unless alt_source_key is non-NULL, in which case it is looked up with alt_source_key. The entry in target_dict is always created with key.
- Note
- The signed integer value from source_dict is retrieved with plist_dict_get_int, but is always created as PLIST_INT.
- Parameters
-
| target_dict | The target dictionary to copy to. |
| source_dict | The source dictionary to copy from. |
| key | The key for the node value to copy. |
| alt_source_key | The alternative source key for lookup in source_dict or NULL. |
- Returns
- PLIST_ERR_SUCCESS on success or PLIST_ERR_INVALID_ARG if the source dictionary does not contain any entry with given key or alt_source_key.