title: returning a "string" from a thread
body: <p>I'm usying threads and I want that a thread reads a string and returns it to the main so I can use it in the main. Can you help me? This is what I do, but in the output it shows strange characters:</p>
  
  <p>thread:</p>
  
  <pre><code>char *usr=malloc(sizeof(char)*10);
  [...code...]
  return (void*)usr;
  </code></pre>
  
  <p>main:</p>
  
  <pre><code>[...code...]
  char usr[10];
  pthread_join(login,(void*)&amp;usr);
  printf("%s",usr);
  </code></pre>