title: How to send a pointer to a function?(This is different)
body: <pre><code>#include&lt;stdio.h&gt;
  #include&lt;conio.h&gt;
  
  int step_counter(char *array);
  
  int main()
  {
      char *txt = "Try...";
  
      printf("%d",step_counter(&amp;txt));
      getch();
  }
  
  int step_counter(char *array)
  {
     int step=0;
     while(*array==NULL)
     {
        array++;
        step++;
     }
     array-=step;
     return step;
  }
  </code></pre>
  
  <p>I need to send a pointer to a function without array. How can I solve this problem? I'm tired because of trying to solve this problem for months...</p>