ECONF\_SET\_COMMENT\_TA(3) libeconf Manual ECONF\_SET\_COMMENT\_TA(3)

# [NAME](#NAME)

econf\_set\_comment\_tag - set the comment tag character for a configuration file object

# [SYNOPSIS](#SYNOPSIS)

```
#include <libeconf.h>
```

**void econf\_set\_comment\_tag(econf\_file \*key\_file, const char comment\_tag);**

# [DESCRIPTION](#DESCRIPTION)

The **econf\_set\_comment\_tag**() function sets the character or sequence of characters that should be treated as the beginning of a comment in the configuration file represented by the *key\_file* object.

The *key\_file* argument is a pointer to the configuration file object to modify.

The *comment\_tag* will be taken while writing comments to file.

# [RETURN VALUE](#RETURN_VALUE)

none

# [SEE ALSO](#SEE_ALSO)

[**libeconf**(3)](/man/os/libeconf/libeconf.3), [**econf\_newKeyFile**(3)](/man/os/libeconf/econf_newKeyFile.3), [**econf\_comment\_tag**(3)](/man/os/libeconf/econf_comment_tag.3), [**econf\_set\_delimiter\_tag**(3)](/man/os/libeconf/econf_set_delimiter_tag.3).

2025-12-04 libeconf

---

Document: econf_set_comment_tag(3) from libeconf 0.8.6-r2 (Chainguard OS)
Source: https://github.com/openSUSE/libeconf
