txtconf is designed to be complementation for getopt(3), using very similar ways for defining configuration file structure (template).
The idea is to implement universal, easy and efficient way to read and save configuration from/to human-readable text files.

Features

  • Easily created configuration templates.
  • Almost *everything* is configurable, including keywords, delimiters, etc.
  • Configuration options are organized in scopes - aka "namespaces".
  • Scopes can be configured as multi-instance or as single-instance type, where multiple occurance of the scope is considered to be an error.
  • Options can have defined default values, what allows to either create initial config files or just use them as default settings.
  • Options can be configured as mandatory or as optional.
  • Options and scopes can be referenced by name or by custom IDs.
  • Automatic verification of type-correctness of values.
  • Smart verifiaction of saved cfg, which allows to detect whether the file was modified. (i.e. the *resulting* cfg is checked - f.e. a new/changed comment in a cfg file is ignored)
  • Man-page included.
  • Tests included.

Project Activity

See All Activity >

License

GNU Library or Lesser General Public License version 3.0 (LGPLv3)

Follow txtconf

txtconf Web Site

Other Useful Business Software
99.99% Uptime for MySQL and PostgreSQL Databases Icon
99.99% Uptime for MySQL and PostgreSQL Databases

Sub-second maintenance. 2x read/write performance. Built-in vector search for AI apps.

Cloud SQL Enterprise Plus delivers near-zero downtime with 35 days of point-in-time recovery. Supports MySQL, PostgreSQL, and SQL Server.
Try Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of txtconf!

Additional Project Details

Operating Systems

Linux

Intended Audience

Developers

Programming Language

C

Related Categories

C Software Development Software, C Libraries

Registered

2013-05-01