libplist  2.7.0
API Documentation - Return to Homepage

◆ plist_new_int()

PLIST_API plist_t plist_new_int ( int64_t  val)

Create a new plist_t type PLIST_INT with a signed integer value.

Parameters
valthe signed integer value
Returns
the created item
See also
plist_type
Note
The value is always stored as uint64_t internally. Use plist_get_uint_val or plist_get_int_val to get the unsigned or signed value.