Package: glib

Function glib:key-file-integer

Lambda List

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

Arguments

keyfile -- a g:key-file instance
group -- a string for the group name
key -- a string for the key

Return Value

The integer with the value associated with the key as an integer, or 0 if the key was not found or could not be parsed.

Details

The g:key-file-integer function returns the value associated with key under group as an integer. The (setf g:key-file-integer) function associates a new integer with key under group. If key cannot be found then it is created.

If key cannot be found then 0 is returned. Likewise, if the value associated with key cannot be interpreted as an integer then 0 is returned.
 

See also

2025-1-12