title: How to print a int64_t type in C
body: <p>C99 standard has integer types with bytes size like int64_t. I am using Windows's <code>%I64d</code> format currently (or unsigned <code>%I64u</code>), like:</p>
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdint.h&gt;
  int64_t my_int = 999999999999999999;
  printf(&quot;This is my_int: %I64d\n&quot;, my_int);
  </code></pre>
  <p>and I get this compiler warning:</p>
  <pre><code>warning: format ‘%I64d’ expects type ‘int’, but argument 2 has type ‘int64_t’
  </code></pre>
  <p>I tried with:</p>
  <pre><code>printf(&quot;This is my_int: %lld\n&quot;, my_int); // long long decimal
  </code></pre>
  <p>But I get the same warning. I am using this compiler:</p>
  <pre><code>~/dev/c$ cc -v
  Using built-in specs.
  Target: i686-apple-darwin10
  Configured with: /var/tmp/gcc/gcc-5664~89/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
  Thread model: posix
  gcc version 4.2.1 (Apple Inc. build 5664)
  </code></pre>
  <p>Which format should I use to print my_int variable without having a warning?</p>