econf_comment_tag - Man Page

retrieve the comment tag character of a configuration file

Synopsis

#include <libeconf​.h>

char econf_comment_tag(const econf_file *key_file);

Description

The econf_comment_tag() function retrieves the comment character currently defined for the configuration file object pointed to by key_file​.

In a typical INI-like configuration file, the comment character (e​.g​., “#” or “;”) denotes the start of a comment, where the rest of the line should be ignored during parsing​.

The key_file parameter must be a pointer to a valid econf_file structure, usually obtained from functions like econf_readConfig(3) or econf_newKeyFile(3)​.

Return Value

On success, econf_comment_tag() returns the comment character used for the configuration file object​.

Errors

This function does not return an explicit error code​. Callers must ensure that key_file is valid before calling this function​.

See Also

econf_set_comment_tag(3), econf_delimiter_tag(3), econf_readConfig(3), libeconf(3)

Info

2025-12-04 libeconf Manual