SyntaxFix
Write A Post
Hire A Developer
Questions
What about:
char *string = "qwerty"; char *e = string; int idx = 0; while (*e++ != 'e') idx++;
copying to e to preserve the original string, I suppose if you don't care you could just operate over *string