title: Cut substring from a String in C
body: <p>I have a string (ex. <code>"one two three four"</code>). I know that I need to cut word that starts from <code>4th</code> to <code>6th</code> symbol.
  How can I achieve this?</p>
  
  <p>Result should be:</p>
  
  <pre><code>Cut string is "two"
  Result string is "one three four"
  </code></pre>
  
  <p>For now I achieved, that I can get the deleted word - '</p>
  
  <pre><code>for(i = 0; i &lt; stringLength; ++i) { 
            if((i&gt;=wordStart) &amp;&amp; (i&lt;=wordEnd))
            {
                deletedWord[j] = sentence[i];
                deletedWord[j+1] = '\0';
                j++;                
            }
      }
  </code></pre>
  
  <p>but when I fill the <code>sentence[i] =  '\0'</code> I have problems with cutting string in the middle.</p>