I would like to implement a macro for calculating hashes of C-strings, and first thing, which I need, is getting codes of characters in string.
My idea is use the builtin macro index
with string, which includes all of 256 ascii characters, and the target character as the second argument. The my first problem is how to safely encode this ascii string.
I'm totally newbie in GNU M4, maybe there is more simple way to do this.