Skip to content

oscaaaaaaar/ini.h

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Single header code for parsing INI file data.

Modify as needed. I recommend swapping out integer types for explicitly sized ones.

  • Assumes ASCII character codes.
  • Same license terms as STB. Available under MIT license or public domain unlicense.
  • No preprocessor usage inside ini.h itself. Add an include guard if desired.
  • Standard C99. Standalone language only, the standard library is not used.
  • Zero heap allocations.
  • One additional data type: struct ini_line_info. No usage of typedef.
  • Eight static leaf functions.

See test.c for example usage.

About

Single header code for parsing INI file data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages