title: Why is fwrite writing more than I tell it to?
body: <pre><code>FILE *out=fopen64("text.txt","w+");
  unsigned int write;
  char *outbuf=new char[write];
  //fill outbuf
  printf("%i\n",ftello64(out));
  fwrite(outbuf,sizeof(char),write,out);
  printf("%i\n",write);
  printf("%i\n",ftello64(out));
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>0
  25755
  25868
  </code></pre>
  
  <p>what is going on?
  write is set to 25755, and I tell fwrite to write that many bytes to a file, which is at the beginning, and then im at a position besides 25755?</p>