title: How to use write() instead of printf()
body: <p>I am trying to print something on the console just by using the syscall write(). So far, it is more difficult than I thought.</p>
  
  <p>The function is kept simple:</p>
  
  <pre><code>void writeOutput(char a, int64_t b, uint8_t c) {
      char bNew[]; // what should be the size of that array=
      while(b != 0x0000000000000000) {
        int leftover = b%10;
        bNew[i] = intToChar(leftover);
        b = b/10;
        i++;
      }
  }
  
  char intToChar(int num) {
      return '0' + num;
  }
  </code></pre>
  
  <p>a should be formatted as char,  b as a decimal number and c as an octal number.</p>
  
  <p>For example a possible input is:
  writeOutput('a', -0xffff, 17); // ouput is "a -65535 21"</p>
  
  <p>The the printed arguments should be separated by spaces and terminated by a newline to standard output. Also, I am trying to do that <strong>without</strong> the the functions of the <strong>sprintf-family</strong>. This makes it a little bit trickier.</p>
  
  <p>EDIT: My question is: How is it possible to do that with write()? (Sry, missed that!)
  The code is online.
  EDIT2: My main problem is doing it without using the sprintf-family. I hoped you might help me.</p>