title: how to pass char pointer to function and return another string in ( C )?
body: <p>i have a code to find table name in SQL query . i create function to check char pointer and i need return table name string .</p>
  
  <p>my function</p>
  
  <pre><code>  char* SQLParser_GetTable(char *query)
   {
     const char *str = "my string";
  
  return *str;
   }
  void PrintRows(char *TableName)
   {
  
   }
   void doSELECT(char *query)
   {
     printf("do SELECT :");
     PrintRows(SQLParser_GetTable(*query));   
   }
  </code></pre>