title: in C what is the proper way to pass a pointer to a string from a function to the main
body: <p>this is the rough idea of what I am trying to do:
  I want the pointer in main to point to the word I just in my function.</p>
  
  <p>my actual code is very long so please excuse this format.</p>
  
  <pre><code>main()
  {
  char *word;
  int lim 256;
  *word = function(word,lim)//I am not returning the address back only the first letter
  } 
  
  function(word,lim)
  {
  //memory allocation
  //getting word
  //reset address
  return(*word);//I am passing the correct address here
  }
  </code></pre>