user input:
string[0]="My Address Street";
string[1]="My Street Address";
string[2]="Street Address";
strstr(string[i]," Street")
// return 0 for string[2], because there is no whitespace before `Street` word
I want to make user input Street only at last string, not in the middle or first string use strstr();.
some trick using reverse string, then count until meet space, then reverse back to normal and substring [ ( string length - count ), (string length) ]. And then compare it with the required input ('Street' at the end of inputted string). if match -> pass or looping until match.