I have inherited the following code and would like to know more about the indexing used.
...
char cpChMap[256];
memset(cpChMap, 0xff, 256);
for (i = 0; i < 10; i++)
cpChMap['0' + i] = 0;
...
I have never seen a char used to index and array before [cpChMap[<character expression>]
], can someone explain how this works or supply a definitive reference as I can't seem to find a decent reference and I have been searching for a while.
Thanks for your time.