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