title: Cast off_t to int
body: <p>I'm getting a "int format, different type arg (arg 4)" error on the last line.  Should I just cast to int or is there a better way to handle this?</p>
  
  <pre><code>struct stat info;
  if (stat(file_path, &amp;info) == -1 || errno == ENOENT)
      return -1;
  
  if (stat(file_path, &amp;info) != -1)
  {
      char buf[LINELEN];
      snprintf(buf,LINELEN,"File Size: %d",info.st_size);
  </code></pre>