How benhoyt/inih works
inih is a small C INI parser: callers supply file, FILE, string, or custom-reader input and receive parsed section/name/value records through a callback. The C++ INIReader wraps that callback into case-insensitive lookups, typed accessors, and section/key queries. The README documents syntax, error, and memory options; those are parser configuration rather than separate runtime subsystems. Relationships shown are limited to the README and sampled source; unsampled example clients are not mapped.
Main entry points: INIReader.h INIReader API · ini.h Parser API · ini.c Stream parser · INIReader.cpp Reader parsing
Components 13
C parser
- Parser API
ini.h - Stream parser
ini.c - File input
ini.c - String input
ini.c - Custom reader
ini.h
C++ reader
- INIReader API
cpp/INIReader.h - Reader parsing
cpp/INIReader.cpp - Value map
cpp/INIReader.cpp - Typed accessors
cpp/INIReader.cpp - Section queries
cpp/INIReader.cpp - Parse status
cpp/INIReader.cpp
Other components
- Application caller
- Value callback
Connections 17
- Application caller → Parser API: calls parse
README.md - Parser API → File input: dispatches file
ini.c - Parser API → String input: dispatches string
ini.c - Parser API → Stream parser: exposes stream
ini.c - File input → Stream parser: delegates to
ini.c - String input → Stream parser: delegates to
ini.c - Custom reader → Stream parser: supplies reader
ini.c - Stream parser → Value callback: emits records
ini.c - Application caller → INIReader API: constructs reader
README.md - INIReader API → Reader parsing: implemented by
cpp/INIReader.cpp - Reader parsing → Parser API: calls parser
cpp/INIReader.cpp - Reader parsing → Value map: callback stores values
cpp/INIReader.cpp - INIReader API → Typed accessors: offers typed reads
cpp/INIReader.h - Typed accessors → Value map: looks up values
cpp/INIReader.cpp - INIReader API → Section queries: offers queries
cpp/INIReader.h - Section queries → Value map: scans values
cpp/INIReader.cpp - INIReader API → Parse status: offers status
cpp/INIReader.h