OS Manuals

econf_hasQuotes(3)

econf_hasQuotes - check whether the value of a key is enclosed by quotes

ECONF_HASQUOTES(3) libeconf Manual ECONF_HASQUOTES(3)

econf_hasQuotes - check whether the value of a key is enclosed by quotes

#include <libeconf.h>

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

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().

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.

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

2026-10-15 libeconf

libeconf 0.8.6-r2 · os · ingested 2026-10-27