2026-03-08 16:21:05 -05:00
# atom
## Description
Simple string interning library. Interning strings will optimize memory usage and prevent duplicates, allowing for faster comparison and reduced memory overhead. This is useful when you need to store many identical strings (such as identifiers or constants) but want to avoid storing them multiple times.
## Table of Contents
- [Description ](#description )
- [Features ](#features )
- [Usage ](#usage )
- [Credits / Resources ](#credits--resources )
- [License ](#license )
## Features
2026-03-08 16:28:12 -05:00
`atom_string(const char *str)` : Interns a string and returns a pointer to the interned string.<br>
2026-03-08 16:27:23 -05:00
`atom_int(int64_t n)` : Converts an integer to its string representation and interns it. Useful for handling numeric strings efficiently.
2026-03-08 16:21:05 -05:00
## Usage
## Credits / Resources
[Tom Preston-Werner README Driven Development ](https://tom.preston-werner.com/2010/08/23/readme-driven-development )<br>
[Make a README ](https://www.makeareadme.com/ )<br>
[Choose a LICENSE ](https://choosealicense.com/ )<br>
[C Interfaces and Implementations ](https://github.com/drh/cii )<br>
[Glib - Quark ](https://docs.gtk.org/glib/alias.Quark.html )<br>
## License
This project is licensed under MIT - see the [LICENSE ](LICENSE ) file for details.