title: Troubling converting string to long long in C
body: <p>I'm having trouble getting the atoll function to properly set a long long value in c. Here is my example:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(void) {
      char s[30] = { "115" };
      long long t = atoll(s);
  
      printf("Value is: %lld\n", t);
  
      return 0;
  }
  </code></pre>
  
  <p>This prints:
  Value is: 0</p>
  
  <p>This works though:</p>
  
  <pre><code>printf("Value is: %lld\n", atoll(s));
  </code></pre>
  
  <p>What is going on here?</p>