char* strrchr(const char* kcpString, int iChar);
#include <cstdio>
#include <cstring>
int main()
{
char caString[] = "XoaX.net";
// Find the first 'e' inside of "XoaX.net"
char* cpFound = strrchr(caString, 'e');
printf("First e found at %i\n", (cpFound - caString));
return 0;
}
© 20072024 XoaX.net LLC. All rights reserved.