title: Looping a Const Char
body: <p>I need to loop a <code>const char</code>, and I've used a simple example of string loop:</p>
  
  <pre><code>const char *str;
  for(int i = 0; i &lt; 10; ++i)
  {
     str += " ";
  }
  </code></pre>
  
  <p>But when I tried to compile, I got this:</p>
  
  <blockquote>
    <p>ubuntu@eeepc:~/Test_C_OS$ gcc -o kernel.o -c kernel.c -Wall -Wextra -nostdlib -nostartfiles -nodefaultlibs<br>
    kernel.c:26: error: ‘for’ loop initial declaration used outside C99 mode<br>
    kernel.c:28: error: invalid operands to binary +<br>
    ubuntu@eeepc:~/Test_C_OS$</p>
  </blockquote>
  
  <p>What should I do?</p>