> Speaking of this, does anyone know a portable way to get printf to
> handle off_t values when they may be larger that a long?  Is there
> none?

The best way I know of is what I used in other places in rsync, which
is this:

  off_t foo = ....;
  printf("seek to %.0f\n", (double)foo);

I know using a double is ugly, but it seems to be the only portable
solution.


Reply via email to