econf_hasQuotes - Man Page

check whether the value of a key is enclosed by quotes

Synopsis

#include <libeconf​.h>

bool econf_hasQuotes(econf_file *kf, const char *group, const char *key);

Description

The econf_hasQuotes() function checks whether the value of the key specified by group and key in the given configuration file object kf is enclosed by quotes​. If group is NULL, the key is considered to belong to no group​.

A value is enclosed by quotes either because it was parsed from a configuration file where it was written with a leading quote character, or because it was marked as such with econf_setQuotes()​. This flag only affects how the value will be enclosed by quotes when the configuration is written back with econf_writeFile()​.

Return Value

econf_hasQuotes() returns true if the value of the given group/key is enclosed by quotes, and false otherwise​.

false is also returned if kf is NULL, or if the group/key combination has not been found​.

See Also

libeconf(3), econf_setQuotes(3), econf_writeFile(3)​

Info

2026-10-15 libeconf Manual