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
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
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