title: SCANF function only records first letter pressed
body: <p>I am working on a simple OS in C++, and am trying to implement the keyboard without using interrupts (yes I'm being lazy-) however the char* returned by the function only has one letter (the first one pressed)
  It uses a variable called MAX_16, which is simply 2^16
  I'm making my own STDLIB and don't have access to most STDLIB functions.</p>
  <pre><code>char* scanf() {
      char* ret;
      for(int i = 0; i &lt;= max_16; i++) {
          ret[i] = getkey();
          if(ret[i] == '\n') { return ret; }
      }
  }
  </code></pre>