this is automatically generated C code, so please don't mind my method of scrolling though a char pointer
I'm using a char pointer to store a string:
char str[] = "Hello!";
char *ptr = str;
And I use pointer arithmetic to scroll through it:
++ptr;
++ptr;
...
...
--ptr;
I'd like to know at some point to exactly what index it's pointing (eg. 1 for 'e' in "Hello"). How do I do this?