title: storing system time to a variable in cpp
body: <p>I want to save the local time to a char variable. here is the code i have used. but it is saying</p>
  
  <blockquote>
    <p>"cannot convert char * to char"</p>
  </blockquote>
  
  <p>Here is my code:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;time.h&gt;
  
  struct tme
  {
    char intime;
  }e;
  void main( )
  {
  
    char timeStr [9];
   _strtime( timeStr );
    e.intime=timeStr;
    printf( "The current time is %s \n", timeStr);
   }
  </code></pre>
  
  <p>Thanx in advance.</p>