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