-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Athaariq "Eric" Ardhiansyah edited this page Aug 7, 2022
·
3 revisions
You might encounter a case where you just want to identify something by string, but after compiled it must become an integer. As illustration below.
____________ ________________
| main.c \ | myprogram |
|--------------\ |----------------|
| "Hello, | ====> | 0x8D 0xD6 |
| World!" | | 0x8C 0xA6 |
|_______________| |________________|
The implementation of this idea on plain C which executes in compilation time is nowhere found previously. So this is why the author created identity.h.
First, get the latest identity-vx.xx.xx.tar.gz file at releases page, extract it. Then, copy entire include content to your project's include directory. If you have no idea what to do, try one of the examples.