title: C format specifier question
body: <p>While I was working i came across a code which was written by somebody else.
   i see a statement as ,</p>
  
  <pre><code>sprintf(o_params-&gt;o_file_name,
          "%s_%s_%04.4d_%s_%s.ASC",
          "OUTD", "RM", sequence_no, DateStamp_buf1, TimeStamp_buf1
  );
  </code></pre>
  
  <p>In the above statement, I see <code>%04.4d</code>. Is this  a correct format specifier?</p>
  
  <p>The variable <code>sequence_no</code> is <code>static int</code> and it doesn't have decimal.</p>