Package: glib

Function glib:key-file-integer-list

Lambda List

glib:key-file-integer-list (keyfile group key)

Syntax

(g:key-file-integer-list keyfile group key) => value
(setf (g:key-file-integer-list keyfile group key) value)

Arguments

keyfile -- a g:key-file instance
group -- a string with the group name
key -- a string with the key name
value -- a list of integers

Return Value

The values associated with the key as a list of integers, or nil if the key was not found or could not be parsed.

Details

The g:key-file-integer-list function returns the values associated with key under group as integers. The (setf g:key-file-integer-list) function associates a list of integer values with key under group. If key cannot be found then it is created. If group is nil, the start group is used.

If key cannot be found then nil is returned. Likewise, if the values associated with key cannot be interpreted as integers then nil is returned.
 

See also

2025-1-12