title: create string with calloc
body: <p>I'm trying to create a string with a simply calloc, but i don't understand why this code works. This calloc would have to create a string with only one space to put only a char, right? Why, when i try to print my string, on stdout i see value casted to string? I thought on stdout appeared only the first number, because I have allocated with calloc only one space.</p>
  
  <pre><code>int main(int argc, const char* argv[]) {
      char* string;
      int value=6000031;
      string=calloc(1,sizeof(char));
      sprintf(string,"%d",value);
      printf("%s\n",string);
      free(string);
      exit(EXIT_SUCCESS);
  }
  </code></pre>