title: Clear all lines in a range in c
body: <p>I need to clear all lines between StartLine and ScreenHight in c, But i get the compiler error:
  <code>warning: too many arguments for format [-Wformat-extra-args]</code></p>
  <p>Code:</p>
  <pre><code>void clearScreen(int startLine, int screenHight)
  {
      for (int i=startLine; i&lt;screenHight - 1; ++i)
      {
          printf(&quot;\x1b[&quot;,i,&quot;;1H\33[2K&quot;);
      }
  }
  </code></pre>