find the last index of a string in a string c code example Example: how to check where the last char is in a string c strlen(str);