Contact: aviboots(AT)netvision.net.il
39,880 questions
51,806 answers
573 users
#include <stdio.h> #include <string.h> int main(void) { char s[] = "Unreal Engine 4"; char *p; p = strrchr(s, 'n'); printf("found the last 'n' in index: %d\n", (int)(p - s)); return 0; } /* run: found the last 'n' in index: 11 */