title: Problem with time() function in embedded application with C
body: <p>I am using <code>time()</code> on an ARM micro-controller. The processor restarts as soon as it reaches this function. </p>
  
  <p>What is strange is that when I am in debug mode the code works perfect but as soon as I want to apply it in standalone I encounter a reset. </p>
  
  <p>Am I overlooking something? 
  Is there a replacement for this function?  </p>
  
  <p>the part of code is like this </p>
  
  <pre><code>#include &lt;sys/time.h&gt;
  #include &lt;stdio.h&gt;
  
  void main (void)
  {
  
     static time_t  rawtime = 0;
  
     rawtime = time (NULL);
  }
  </code></pre>